summaryrefslogtreecommitdiffstats
path: root/gst
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 /gst
parent1658384381a7e6e253bcab6106417c7502b7cec8 (diff)
downloadgst-plugins-bad-2bb31a8d4a3df3604799bcc07cf6673fed12ebb7.tar.gz
gst-plugins-bad-2bb31a8d4a3df3604799bcc07cf6673fed12ebb7.tar.bz2
gst-plugins-bad-2bb31a8d4a3df3604799bcc07cf6673fed12ebb7.zip
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.
Diffstat (limited to 'gst')
-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 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;