[vlc-devel] [PATCH] demux/mpeg: Mark p_demux as VLC_UNUSED

Marvin Scholz epirat07 at gmail.com
Mon Nov 20 10:28:59 CET 2017


---
 modules/demux/mpeg/ts_pid.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mpeg/ts_pid.c b/modules/demux/mpeg/ts_pid.c
index 8604aba494..0fb91aa8dd 100644
--- a/modules/demux/mpeg/ts_pid.c
+++ b/modules/demux/mpeg/ts_pid.c
@@ -53,6 +53,8 @@ void ts_pid_list_Release( demux_t *p_demux, ts_pid_list_t *p_list )
 #ifndef NDEBUG
         if( pid->type != TYPE_FREE )
             msg_Err( p_demux, "PID %d type %d not freed refcount %d", pid->i_pid, pid->type, pid->i_refcount );
+#else
+        VLC_UNUSED(p_demux);
 #endif
         free( pid );
     }
-- 
2.13.6 (Apple Git-96)



More information about the vlc-devel mailing list