From: David Schleef Date: Sat, 22 Jan 2011 08:13:16 +0000 (-0800) Subject: flvmux: don't set duration for live stream X-Git-Tag: RELEASE-0.10.29~602 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63bb9807a3e3cb16bbecb923bb1fab9ac804875a;p=platform%2Fupstream%2Fgst-plugins-good.git flvmux: don't set duration for live stream --- diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index e73160471..68a0df4fc 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -685,9 +685,11 @@ gst_flv_mux_create_metadata (GstFlvMux * mux) /* Some players expect the 'duration' to be always set. Fill it out later, after querying the pads or after getting EOS */ - tmp = gst_flv_mux_create_number_script_value ("duration", 0); - script_tag = gst_buffer_join (script_tag, tmp); - tags_written++; + if (!mux->streamable) { + tmp = gst_flv_mux_create_number_script_value ("duration", 86400); + script_tag = gst_buffer_join (script_tag, tmp); + tags_written++; + } /* Sometimes the information about the total file size is useful for the player. It will be filled later, after getting EOS */