diff options
Diffstat (limited to 'gst/camerabin2/gstwrappercamerabinsrc.c')
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 8e661b83f..caae45fd0 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -456,7 +456,6 @@ check_and_replace_src (GstWrapperCameraBinSrc * self) { GstBin *cbin = GST_BIN_CAST (self); GstBaseCameraSrc *bcamsrc = GST_BASE_CAMERA_SRC_CAST (self); - GstElement *videoconvert; if (self->src_vid_src && self->src_vid_src == self->app_vid_src) { GST_DEBUG_OBJECT (self, "No need to change current videosrc"); @@ -496,13 +495,11 @@ check_and_replace_src (GstWrapperCameraBinSrc * self) } /* check if we already have the next element to link to */ - videoconvert = gst_bin_get_by_name (cbin, "src-videoconvert"); - if (videoconvert) { - if (!gst_element_link_pads (self->src_vid_src, "src", videoconvert, "sink")) { - gst_object_unref (videoconvert); + if (self->src_crop) { + if (!gst_element_link_pads (self->src_vid_src, "src", self->src_crop, + "sink")) { return FALSE; } - gst_object_unref (videoconvert); } /* we listen for changes to max-zoom in the video src so that |