mpegtsdemux: Fix issues with GST_DISABLE_GST_DEBUG
authorEdward Hervey <edward@centricular.com>
Tue, 11 Oct 2016 14:47:37 +0000 (16:47 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 11 Oct 2016 14:47:37 +0000 (16:47 +0200)
Some variables were hidden or unused

gst/mpegtsdemux/mpegtsbase.c
gst/mpegtsdemux/tsdemux.c

index 16b63ae..938509b 100644 (file)
@@ -1397,8 +1397,7 @@ mpegts_base_loop (MpegTSBase * base)
 
 error:
   {
-    const gchar *reason = gst_flow_get_name (ret);
-    GST_DEBUG_OBJECT (base, "Pausing task, reason %s", reason);
+    GST_DEBUG_OBJECT (base, "Pausing task, reason %s", gst_flow_get_name (ret));
     if (ret == GST_FLOW_EOS) {
       if (!GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base,
               gst_event_new_eos ()))
index 3aefc13..b08fd34 100644 (file)
@@ -2521,9 +2521,7 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream,
     MpegTSBaseProgram * target_program)
 {
   GstFlowReturn res = GST_FLOW_OK;
-#ifndef GST_DISABLE_GST_DEBUG
   MpegTSBaseStream *bs = (MpegTSBaseStream *) stream;
-#endif
   GstBuffer *buffer = NULL;
   GstBufferList *buffer_list = NULL;