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
@ -586,10 +586,12 @@ gst_multi_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
|
|||||||
if (multifilesink->file == NULL) {
|
if (multifilesink->file == NULL) {
|
||||||
if (!gst_multi_file_sink_open_next_file (multifilesink))
|
if (!gst_multi_file_sink_open_next_file (multifilesink))
|
||||||
goto stdio_write_error;
|
goto stdio_write_error;
|
||||||
}
|
|
||||||
|
|
||||||
if (!gst_multi_file_sink_write_stream_headers (multifilesink))
|
/* we don't need to write stream headers here, they will be inserted in
|
||||||
goto stdio_write_error;
|
* the stream by upstream elements if key unit events have
|
||||||
|
* all_headers=true set
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
ret = fwrite (map.data, map.size, 1, multifilesink->file);
|
ret = fwrite (map.data, map.size, 1, multifilesink->file);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user