# HG changeset patch
# User reimar
# Date 1297000990 0
# Node ID 9404cb19e08d667aecdf4ad611233c41a2ebb332
# Parent  9cc2689e5cd17a12edbbaccf0887425851a73acc
Print a message when lavc subtitle decoding fails.

diff -r 9cc2689e5cd1 -r 9404cb19e08d mpcommon.c
--- a/mpcommon.c	Sun Feb 06 13:52:05 2011 +0000
+++ b/mpcommon.c	Sun Feb 06 14:03:10 2011 +0000
@@ -202,6 +202,8 @@
             if (is_av_sub(type)) {
 #ifdef CONFIG_FFMPEG
                 type = decode_avsub(d_dvdsub->sh, &packet, &len, &subpts, &endpts);
+                if (type < 0)
+                    mp_msg(MSGT_SPUDEC, MSGL_WARN, "lavc failed decoding subtitle\n");
                 if (type <= 0)
 #endif
                     continue;