From 9e2b74b073f28673d12b4445de3e189cad18b442 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 6 Feb 2011 14:03:10 +0000 Subject: subs: Print a message when lavc subtitle decoding fails git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32865 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index 0347194fa4..3e8d071a59 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1928,7 +1928,10 @@ void update_subtitles(struct MPContext *mpctx, double refpts, len = ds_get_packet_sub(d_sub, &packet); if (is_av_sub(type)) { #ifdef CONFIG_FFMPEG - decode_avsub(sh_sub, packet, len, subpts, duration); + int ret = decode_avsub(sh_sub, packet, len, subpts, duration); + if (ret < 0) + mp_msg(MSGT_SPUDEC, MSGL_WARN, "lavc failed decoding " + "subtitle\n"); #endif continue; } -- cgit v1.2.3