mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ gst_camerabin_image_change_state (GstElement * element,
|
||||||
img->filename->str);
|
img->filename->str);
|
||||||
gst_element_set_locked_state (img->sink, TRUE);
|
gst_element_set_locked_state (img->sink, TRUE);
|
||||||
gst_element_set_state (img->sink, GST_STATE_NULL);
|
gst_element_set_state (img->sink, GST_STATE_NULL);
|
||||||
|
g_string_assign (img->filename, "");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue