dashdemux: fix time leak

Coverity 1147016
This commit is contained in:
Vincent Penquerc'h 2014-04-10 17:48:03 +01:00
parent 59654c68ee
commit 2dd898793e

View file

@ -1823,7 +1823,6 @@ gst_dash_demux_wait_for_fragment_to_be_available (GstDashDemux * demux,
GstDashDemuxStream * stream)
{
GstDateTime *seg_end_time;
GstDateTime *cur_time = gst_date_time_new_now_utc ();
GstActiveStream *active_stream = stream->active_stream;
seg_end_time =
@ -1832,6 +1831,7 @@ gst_dash_demux_wait_for_fragment_to_be_available (GstDashDemux * demux,
if (seg_end_time) {
gint64 diff;
GstDateTime *cur_time;
cur_time = gst_date_time_new_now_utc ();
diff = gst_mpd_client_calculate_time_difference (cur_time, seg_end_time);