mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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
This commit is contained in:
parent
a5aea75808
commit
b9c2f8b38f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue