diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2011-12-22 15:19:05 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2011-12-22 16:17:56 -0300 |
commit | 36fbb8eea444820c53cbc477bd4b5ac8809784d1 (patch) | |
tree | 6ac653a8f416abdda977a5f81361042215a26ba5 /gst/camerabin2 | |
parent | d9e13c4268c1e2908f283e73914697b1332c1e27 (diff) | |
download | gstreamer-plugins-bad-36fbb8eea444820c53cbc477bd4b5ac8809784d1.tar.gz |
basecamerabinsrc: remove redundant functions
gst_bin_get_by_interface should be enough for applications.
Haven't seen anyone using those other than wrappercamerabinsrc.
Diffstat (limited to 'gst/camerabin2')
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 5c8d2d116..1fc71c0b2 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -31,6 +31,8 @@ # include <config.h> #endif +#include <gst/interfaces/photography.h> + #include "gstwrappercamerabinsrc.h" #include "camerabingeneral.h" @@ -703,7 +705,9 @@ static gboolean start_image_capture (GstWrapperCameraBinSrc * self) { GstBaseCameraSrc *bcamsrc = GST_BASE_CAMERA_SRC (self); - GstPhotography *photography = gst_base_camera_src_get_photography (bcamsrc); + GstPhotography *photography = + (GstPhotography *) gst_bin_get_by_interface (GST_BIN_CAST (bcamsrc), + GST_TYPE_PHOTOGRAPHY); gboolean ret = FALSE; GstCaps *caps; @@ -744,7 +748,9 @@ static gboolean gst_wrapper_camera_bin_src_set_mode (GstBaseCameraSrc * bcamsrc, GstCameraBinMode mode) { - GstPhotography *photography = gst_base_camera_src_get_photography (bcamsrc); + GstPhotography *photography = + (GstPhotography *) gst_bin_get_by_interface (GST_BIN_CAST (bcamsrc), + GST_TYPE_PHOTOGRAPHY); GstWrapperCameraBinSrc *self = GST_WRAPPER_CAMERA_BIN_SRC (bcamsrc); if (self->output_selector) { |