After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709373 - camerabin: Filesink not closing file after stop-capture
camerabin: Filesink not closing file after stop-capture
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 1.2.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-03 15:16 UTC by Joshua M. Doe
Modified: 2013-11-07 01:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joshua M. Doe 2013-10-03 15:16:29 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?
Comment 1 Thiago Sousa Santos 2013-11-07 01:28:32 UTC
Thanks for the report, the bug was fixed by commit e7e741752371cb593ade69bf47363efb48324904 on master.

The fix will be available in the next release.