Commit b9c2f8b3 authored by Tom Janiszewski's avatar Tom Janiszewski Committed by Tim-Philipp Müller
Browse files

flvmux: don't overwrite metadata tag with duration in streaming mode

A duration tag gets inserted only for streamable=false, so only
update/write the duration later if we actually inserted that tag,
otherwise we write garbage into other tags.
parent a5aea758
......@@ -766,7 +766,7 @@ gst_flv_mux_create_metadata (GstFlvMux * mux)
if (mux->duration != GST_CLOCK_TIME_NONE) {
if (!mux->streamable && mux->duration != GST_CLOCK_TIME_NONE) {
gdouble d;
d = gst_guint64_to_gdouble (mux->duration);
d /= (gdouble) GST_SECOND;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment