dashdemux: ensure segments aren't fetched before they're available

Incorrect time scaling in gst_dash_demux_wait_for_fragment_to_be_available()
means that media segments are fetched before their availablity time. This
patch fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=724875
This commit is contained in:
Chris Bass 2014-02-21 12:33:42 +00:00 committed by Sebastian Dröge
parent fc34d163d8
commit 6342d225bf

View file

@ -1834,8 +1834,7 @@ gst_dash_demux_wait_for_fragment_to_be_available (GstDashDemux * demux,
gint64 diff;
cur_time = gst_date_time_new_now_utc ();
diff = gst_mpd_client_calculate_time_difference (cur_time, seg_end_time)
/ GST_MSECOND;
diff = gst_mpd_client_calculate_time_difference (cur_time, seg_end_time);
gst_date_time_unref (seg_end_time);
gst_date_time_unref (cur_time);
if (diff > 0) {