Commit bf03219b authored by Filip Roséen's avatar Filip Roséen Committed by 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's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 541daf88
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment