mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
hlsdemux: don't warn about duration if it is not known
And also print the values in case of warning
This commit is contained in:
parent
0553559fd2
commit
bc33d22635
1 changed files with 5 additions and 2 deletions
|
@ -519,8 +519,11 @@ gst_m3u8_update (GstM3U8Client * client, GstM3U8 * self, gchar * data,
|
|||
goto next_line;
|
||||
}
|
||||
duration = fval * (gdouble) GST_SECOND;
|
||||
if (duration > self->targetduration)
|
||||
GST_WARNING ("EXTINF duration > TARGETDURATION");
|
||||
if (self->targetduration > 0 && duration > self->targetduration) {
|
||||
GST_WARNING ("EXTINF duration (%" GST_TIME_FORMAT
|
||||
") > TARGETDURATION (%" GST_TIME_FORMAT ")",
|
||||
GST_TIME_ARGS (duration), GST_TIME_ARGS (self->targetduration));
|
||||
}
|
||||
if (!data || *data != ',')
|
||||
goto next_line;
|
||||
data = g_utf8_next_char (data);
|
||||
|
|
Loading…
Reference in a new issue