diff options
author | Thiago Santos <thiagossantos@gmail.com> | 2016-07-16 15:29:42 -0300 |
---|---|---|
committer | Thiago Santos <thiagossantos@gmail.com> | 2016-10-20 11:17:34 -0300 |
commit | a94eef935733497baf11b55c604dd24ef7c7d299 (patch) | |
tree | 86802541cabebf263dace46f220c621b57d33688 | |
parent | 6eef9971be24e55099733f9cecb1fc032b67063f (diff) | |
download | gstreamer-plugins-bad-a94eef935733497baf11b55c604dd24ef7c7d299.tar.gz |
dash: do not use invalid stream duration
If it is is unknown, consider it infinite
https://bugzilla.gnome.org/show_bug.cgi?id=768460
-rw-r--r-- | ext/dash/gstmpdparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 387bb65ed..e6d7283de 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3347,7 +3347,8 @@ gst_mpd_client_get_period_index_at_time (GstMpdClient * client, for (idx = 0, iter = client->periods; iter; idx++, iter = g_list_next (iter)) { stream_period = iter->data; if (stream_period->start <= time_offset - && stream_period->start + stream_period->duration > time_offset) { + && (!GST_CLOCK_TIME_IS_VALID (stream_period->duration) + || stream_period->start + stream_period->duration > time_offset)) { period_idx = idx; break; } |