mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
flvmux: don't set duration for live stream
This commit is contained in:
parent
1732baf7af
commit
63bb9807a3
1 changed files with 5 additions and 3 deletions
|
@ -685,9 +685,11 @@ gst_flv_mux_create_metadata (GstFlvMux * mux)
|
||||||
|
|
||||||
/* Some players expect the 'duration' to be always set. Fill it out later,
|
/* Some players expect the 'duration' to be always set. Fill it out later,
|
||||||
after querying the pads or after getting EOS */
|
after querying the pads or after getting EOS */
|
||||||
tmp = gst_flv_mux_create_number_script_value ("duration", 0);
|
if (!mux->streamable) {
|
||||||
script_tag = gst_buffer_join (script_tag, tmp);
|
tmp = gst_flv_mux_create_number_script_value ("duration", 86400);
|
||||||
tags_written++;
|
script_tag = gst_buffer_join (script_tag, tmp);
|
||||||
|
tags_written++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Sometimes the information about the total file size is useful for the
|
/* Sometimes the information about the total file size is useful for the
|
||||||
player. It will be filled later, after getting EOS */
|
player. It will be filled later, after getting EOS */
|
||||||
|
|
Loading…
Reference in a new issue