From b9c2f8b38f2e35185a0178d2e223e9f75ca6c7a5 Mon Sep 17 00:00:00 2001 From: Tom Janiszewski Date: Sun, 1 May 2011 00:04:03 -0400 Subject: [PATCH] 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. https://bugzilla.gnome.org/show_bug.cgi?id=649060 --- gst/flv/gstflvmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 005570d..40a18e8 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -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; -- 2.7.4