[vlc-commits] demux/nsv: improve diagnostics related to unknown codec

Filip Roséen git at videolan.org
Wed Nov 16 14:27:42 CET 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Sun Nov  6 03:17:23 2016 +0100| [bf03219b198239693ba7ae77d5fb127435fef7f5] | committer: Jean-Baptiste Kempf

demux/nsv: improve diagnostics related to unknown codec

It is more helpful to know whether the unsupported codec is video or audio, and
given the seriousness of the matter; an error or is more appropriate than a
warning.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf03219b198239693ba7ae77d5fb127435fef7f5
---

 modules/demux/nsv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/nsv.c b/modules/demux/nsv.c
index fc260f9..eacda5f 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -502,7 +502,7 @@ static int ReadNSVs( demux_t *p_demux )
         case VLC_FOURCC( 'N', 'O', 'N', 'E' ):
             break;
         default:
-            msg_Warn( p_demux, "unknown codec %4.4s", (char *)&fcc );
+            msg_Err( p_demux, "unsupported video codec %4.4s", (char *)&fcc );
             break;
     }
     if( fcc != VLC_FOURCC( 'N', 'O', 'N', 'E' ) && fcc != p_sys->fmt_video.i_codec  )
@@ -543,7 +543,7 @@ static int ReadNSVs( demux_t *p_demux )
         case VLC_FOURCC( 'N', 'O', 'N', 'E' ):
             break;
         default:
-            msg_Warn( p_demux, "unknown codec %4.4s", (char *)&fcc );
+            msg_Err( p_demux, "unsupported audio codec %4.4s", (char *)&fcc );
             break;
     }
 



More information about the vlc-commits mailing list