GNOME Bugzilla – Bug 709373
camerabin: Filesink not closing file after stop-capture
Last modified: 2013-11-07 01:28:32 UTC
After getting the video-done signal from camerabin, I would have expected to be able to move or delete the resulting file, but am unable to do so. It seems like filesink doesn't actually close the file until the READY_TO_NULL transition, and camerabin doesn't set filesink to GST_STATE_NULL until GstBaseCameraSrc changes ready-for-capture to false, i.e. just as a capture is about to be started. It seems like the file should be closed before emitting the video-done signal. I'm not very familiar with the internals of camerabin, but perhaps we can set the state of filesink to NULL then READY in gst_camera_bin_video_reset_elements?
Thanks for the report, the bug was fixed by commit e7e741752371cb593ade69bf47363efb48324904 on master. The fix will be available in the next release.