From a99164811cd26c186038135f1b029d79e58deb9d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 25 Mar 2014 21:40:11 +1100 Subject: [PATCH] dvbsuboverlay: Remove warning for 2-bit and 8-bit subpictures Both 2-bit and 8-bit mode now seem fine, so remove the warning messages about them --- gst/dvbsuboverlay/dvb-sub.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/gst/dvbsuboverlay/dvb-sub.c b/gst/dvbsuboverlay/dvb-sub.c index c1509ee5ab..e546423c38 100644 --- a/gst/dvbsuboverlay/dvb-sub.c +++ b/gst/dvbsuboverlay/dvb-sub.c @@ -644,14 +644,6 @@ _dvb_sub_read_2bit_string (guint8 * destbuf, gint dbuf_len, guint32 bits = 0; guint32 pixels_read = 0; - static gboolean warning_shown = FALSE; - if (!warning_shown) { - g_warning ("Parsing 2bit color DVB sub-picture. This is not tested at all. " - "If you see this message, please provide the developers with sample " - "media with these subtitles, if possible."); - warning_shown = TRUE; - } - GST_TRACE ("dbuf_len = %d", dbuf_len); while (!stop_parsing && (gst_bit_reader_get_remaining (&gb) > 0)) { @@ -842,14 +834,6 @@ _dvb_sub_read_8bit_string (guint8 * destbuf, gint dbuf_len, guint32 bits = 0; guint32 pixels_read = 0; - static gboolean warning_shown = FALSE; - if (!warning_shown) { - g_warning - ("Parsing 8bit color DVB sub-picture. This is not tested at all. If you see this message, " - "please provide the developers with sample media with these subtitles, if possible."); - warning_shown = TRUE; - } - GST_LOG ("dbuf_len = %d", dbuf_len); /* FFMPEG-FIXME: ffmpeg uses a manual byte walking algorithm, which might be more performant,