GNOME Bugzilla – Bug 358613
sink->file is never reset for filesink elements, even though pipeline goes to READY and back to PLAYING
Last modified: 2006-10-02 09:57:09 UTC
Please describe the problem:
If a filesink element is used at the end of a pipeline to store contents to file, it should be possible to set the state of the pipeline to READY, change the location property of the filesink element to a new file, and then set the state of the pipeline to PLAYING again, all this in order to store content to another file.
This does not work since the sink->file is never reset.
Steps to reproduce:
Run that tries to change the "location" property of a filesink element on a pipeline in READY state.
The warning: "WARNING **: Changing the `location' property on filesink when a file is open not supported." is given.
I would expect the filesink element to start storing content to the new file.
Does this happen every time?
Created attachment 73714 [details] [review]
Patch by: Alessandro Decina <alessandro at nnva org>
* plugins/elements/gstfilesink.c: (gst_file_sink_init),
Set file to NULL when closing filesink so that we can set a new filename
in READY. Fixes #358613.