From 2bb31a8d4a3df3604799bcc07cf6673fed12ebb7 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 16 Jun 2009 17:09:26 +0300 Subject: camerabin: reset filename after capture to avoid racy when capturing again If we don't reset the filename we cannot check if we still expect the filename for a subsequent capture pass. The imagebin would good to paused and we set the filename in that state. This trigers an error-message and would capture to the old filename. --- gst/camerabin/camerabinimage.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst') diff --git a/gst/camerabin/camerabinimage.c b/gst/camerabin/camerabinimage.c index 10b0adf0..da979f0f 100644 --- a/gst/camerabin/camerabinimage.c +++ b/gst/camerabin/camerabinimage.c @@ -211,6 +211,7 @@ gst_camerabin_image_change_state (GstElement * element, img->filename->str); gst_element_set_locked_state (img->sink, TRUE); gst_element_set_state (img->sink, GST_STATE_NULL); + g_string_assign (img->filename, ""); break; default: break; -- cgit v1.2.1