mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
multifilesink: don't write stream headers with key-unit-event
Don't write stream headers, let upstream elements insert them in the stream if all_headers=true is set in key unit events.
This commit is contained in:
parent
e111068f7b
commit
b916d2b398
1 changed files with 5 additions and 3 deletions
|
@ -586,10 +586,12 @@ gst_multi_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
|
|||
if (multifilesink->file == NULL) {
|
||||
if (!gst_multi_file_sink_open_next_file (multifilesink))
|
||||
goto stdio_write_error;
|
||||
}
|
||||
|
||||
if (!gst_multi_file_sink_write_stream_headers (multifilesink))
|
||||
goto stdio_write_error;
|
||||
/* we don't need to write stream headers here, they will be inserted in
|
||||
* the stream by upstream elements if key unit events have
|
||||
* all_headers=true set
|
||||
*/
|
||||
}
|
||||
|
||||
ret = fwrite (map.data, map.size, 1, multifilesink->file);
|
||||
|
||||
|
|
Loading…
Reference in a new issue