From 2dd898793ef4ab89d677dc00c414266159517cca Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 10 Apr 2014 17:48:03 +0100 Subject: [PATCH] dashdemux: fix time leak Coverity 1147016 --- ext/dash/gstdashdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 38f8245fb0..ba78758875 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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);