summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2017-01-12 16:14:57 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-01-16 14:33:05 +0100
commit5422728c7fd12bbbe71e8ce6bec1b6c161ed1fdc (patch)
treecf6527dea31e58a232808da0e55b57c2c654e9c9 /ext
parente99e69843a5b1925d9e069cccf13f826c42c8e43 (diff)
downloadgstreamer-plugins-bad-5422728c7fd12bbbe71e8ce6bec1b6c161ed1fdc.tar.gz
mpdparser: Fix compilation with GST_DISABLE_GST_DEBUG
Diffstat (limited to 'ext')
-rw-r--r--ext/dash/gstmpdparser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index a585cb0ef..baf5dbc83 100644
--- a/ext/dash/gstmpdparser.c
+++ b/ext/dash/gstmpdparser.c
@@ -3912,7 +3912,6 @@ gst_mpd_client_setup_representation (GstMpdClient * client,
GstStreamPeriod *stream_period;
GList *rep_list;
GstClockTime PeriodStart, PeriodEnd, start_time, duration;
- GstMediaSegment *last_media_segment;
guint i;
guint64 start;
@@ -4142,13 +4141,15 @@ gst_mpd_client_setup_representation (GstMpdClient * client,
}
}
}
+#ifndef GST_DISABLE_GST_DEBUG
if (stream->segments->len > 0) {
- last_media_segment =
+ GstMediaSegment *last_media_segment =
g_ptr_array_index (stream->segments, stream->segments->len - 1);
GST_LOG ("Built a list of %d segments", last_media_segment->number);
} else {
GST_LOG ("All media segments were clipped");
}
+#endif
}
g_free (stream->baseURL);