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:
parent
1658384381
commit
2bb31a8d4a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user