openbsd-ports/multimedia/subrip/patches/patch-mp_msg_c
espie 0f4805b64e subtitle extraction, part of ogmrip. Contains the two commands that
bridge the gap between mplayer/gocr and full text subtitle extraction,
some manpages, and a sample shell script that can perform subtitle
extraction.
2007-01-22 13:55:42 +00:00

20 lines
424 B
Plaintext

$OpenBSD: patch-mp_msg_c,v 1.1.1.1 2007/01/22 13:55:42 espie Exp $
--- 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);