camerabin: don't reset capsfilters or zoom if error occurs
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Mon, 29 Jun 2009 12:23:25 +0000 (15:23 +0300)
committerRené Stadler <rene.stadler@nokia.com>
Thu, 1 Oct 2009 15:06:53 +0000 (18:06 +0300)
If an error occurs, application should set pipeline to NULL, and updating
zoom can actually block message handling if video device driver has failed
and video src element supports zooming using photography interface and S_CROP.

gst/camerabin/gstcamerabin.c

index c3010ab..b449aa9 100644 (file)
@@ -3094,7 +3094,6 @@ gst_camerabin_handle_message_func (GstBin * bin, GstMessage * msg)
           GST_MESSAGE_SRC (msg));
       g_mutex_lock (camera->capture_mutex);
       if (camera->capturing) {
-        gst_camerabin_finish_image_capture (camera);
         camera->capturing = FALSE;
         g_cond_signal (camera->cond);
       }