diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-04-20 08:21:32 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-04-21 10:00:44 -0300 |
commit | 70193761b865f48811456fc42513404903fc24d6 (patch) | |
tree | f7d44c22c55e617d2ddf25aa145e80d182bb3477 /gst/camerabin2 | |
parent | 87e306fe4a2c8ecea295f2f95b33ffb609a17bcc (diff) | |
download | gstreamer-plugins-bad-70193761b865f48811456fc42513404903fc24d6.tar.gz |
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.
Diffstat (limited to 'gst/camerabin2')
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 0843d8578..592508da3 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); |