summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2009-05-04 10:32:10 +0300
committerStefan Kost <ensonic@users.sf.net>2009-06-05 15:51:30 +0300
commitcbcd4e33303f5d7fc2bd6728e79f7e0c3608e06b (patch)
tree840516a25ade838fe3a950ba3aa75825f60cbbdd /gst
parentcad76384b3bb676dfc0fc3b8e339798264b0b0f2 (diff)
downloadgst-plugins-bad-cbcd4e33303f5d7fc2bd6728e79f7e0c3608e06b.tar.gz
gst-plugins-bad-cbcd4e33303f5d7fc2bd6728e79f7e0c3608e06b.tar.bz2
gst-plugins-bad-cbcd4e33303f5d7fc2bd6728e79f7e0c3608e06b.zip
camerabin: stop ongoing capture if changing resolution
Diffstat (limited to 'gst')
-rw-r--r--gst/camerabin/gstcamerabin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c
index 55475589..d7c6d032 100644
--- a/gst/camerabin/gstcamerabin.c
+++ b/gst/camerabin/gstcamerabin.c
@@ -2937,6 +2937,9 @@ gst_camerabin_user_res_fps (GstCameraBin * camera, gint width, gint height,
GST_INFO_OBJECT (camera, "switching resolution to %dx%d and fps to %d/%d",
width, height, fps_n, fps_d);
+ /* Interrupt ongoing capture */
+ gst_camerabin_do_stop (camera);
+
gst_element_get_state (GST_ELEMENT (camera), &state, &pending, 0);
if (state == GST_STATE_PAUSED || state == GST_STATE_PLAYING) {
GST_INFO_OBJECT (camera,