summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-06-16 17:09:26 +0300
committerJan Schmidt <thaytan@noraisin.net>2009-06-16 19:14:25 +0100
commit2bb31a8d4a3df3604799bcc07cf6673fed12ebb7 (patch)
tree29b67962a9588ccc4efda4b5d85acf0f66ca9a21
parent1658384381a7e6e253bcab6106417c7502b7cec8 (diff)
downloadgstreamer-plugins-bad-2bb31a8d4a3df3604799bcc07cf6673fed12ebb7.tar.gz
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.
-rw-r--r--gst/camerabin/camerabinimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/camerabin/camerabinimage.c b/gst/camerabin/camerabinimage.c
index 10b0adf03..da979f0f6 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;