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.
This commit is contained in:
Stefan Kost 2009-06-16 17:09:26 +03:00 committed by Jan Schmidt
parent 1658384381
commit 2bb31a8d4a

View file

@ -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;