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:
Alessandro Decina 2012-11-10 12:39:08 +01:00
parent e111068f7b
commit b916d2b398

View file

@ -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);