From: Thiago Santos Date: Mon, 20 Apr 2015 11:21:32 +0000 (-0300) Subject: wrappercamerabinsrc: Reset zoom element caps to go to viewfinder mode X-Git-Tag: 1.19.3~507^2~8941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70193761b865f48811456fc42513404903fc24d6;p=platform%2Fupstream%2Fgstreamer.git wrappercamerabinsrc: Reset zoom element caps to go to viewfinder mode Avoids not-negotiated failures related to using image capture caps still when adjusting to go back to viewfinder. --- diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 0843d85..592508d 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -269,9 +269,14 @@ gst_wrapper_camera_bin_src_imgsrc_probe (GstPad * pad, GstPadProbeInfo * info, gst_sample_unref (sample); if (self->image_capture_count == 0) { + GstCaps *anycaps = gst_caps_new_any (); + /* Get back to viewfinder */ + gst_wrapper_camera_bin_reset_video_src_caps (self, anycaps); gst_wrapper_camera_bin_src_set_output (self, self->imgsrc, self->vfsrc); gst_base_camera_src_finish_capture (camerasrc); + + gst_caps_unref (anycaps); } } g_mutex_unlock (&camerasrc->capturing_mutex);