ports/multimedia/subrip/patches/patch-mp_msg_c

19 lines
357 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- mp_msg.c.orig Thu Jan 18 12:31:44 2007
+++ mp_msg.c Thu Jan 18 12:32:51 2007
@@ -7,10 +7,15 @@
#include "mp_msg.h"
+extern int debug_messages;
+
void
mp_msg (int module, int level, const char *format, ...)
{
va_list va;
+
+ if (level == MSGL_DBG2 && !debug_messages)
+ return;
va_start (va, format);
vfprintf (stderr, format, va);