[vlc-devel] commit: transcode: When failing also print the fourcc we were looking for instead of just "( null)" if no explicit module was selected. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat May 24 02:35:02 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat May 24 02:36:14 2008 +0200| [f60fff1adf4e6b73d9529c2522436d930d71f33b]
transcode: When failing also print the fourcc we were looking for instead of just "(null)" if no explicit module was selected.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f60fff1adf4e6b73d9529c2522436d930d71f33b
---
modules/stream_out/transcode.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 2d6d30f..19bdfc7 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -1401,7 +1401,8 @@ static int transcode_audio_new( sout_stream_t *p_stream,
module_Need( id->p_encoder, "encoder", p_sys->psz_aenc, true );
if( !id->p_encoder->p_module )
{
- msg_Err( p_stream, "cannot find audio encoder (%s)", p_sys->psz_aenc );
+ msg_Err( p_stream, "cannot find audio encoder (%s/%4.4s)",
+ p_sys->psz_aenc, (char *)&p_sys->i_acodec );
module_Unneed( id->p_decoder, id->p_decoder->p_module );
id->p_decoder->p_module = NULL;
return VLC_EGENERIC;
@@ -1495,7 +1496,8 @@ static int transcode_audio_new( sout_stream_t *p_stream,
module_Need( id->p_encoder, "encoder", p_sys->psz_aenc, true );
if( !id->p_encoder->p_module )
{
- msg_Err( p_stream, "cannot find audio encoder (%s)", p_sys->psz_aenc );
+ msg_Err( p_stream, "cannot find audio encoder (%s/%4.4s)",
+ p_sys->psz_aenc, (char *)&p_sys->i_acodec );
transcode_audio_close( id );
return VLC_EGENERIC;
}
@@ -1835,7 +1837,8 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
module_Need( id->p_encoder, "encoder", p_sys->psz_venc, true );
if( !id->p_encoder->p_module )
{
- msg_Err( p_stream, "cannot find video encoder (%s)", p_sys->psz_venc );
+ msg_Err( p_stream, "cannot find video encoder (%s/%4.4s)",
+ p_sys->psz_venc, (char *)&p_sys->i_vcodec );
module_Unneed( id->p_decoder, id->p_decoder->p_module );
id->p_decoder->p_module = 0;
return VLC_EGENERIC;
@@ -2149,7 +2152,8 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
module_Need( id->p_encoder, "encoder", p_sys->psz_venc, true );
if( !id->p_encoder->p_module )
{
- msg_Err( p_stream, "cannot find video encoder (%s)", p_sys->psz_venc );
+ msg_Err( p_stream, "cannot find video encoder (%s/%4.4s)",
+ p_sys->psz_venc, (char *)&p_sys->i_vcodec );
return VLC_EGENERIC;
}
More information about the vlc-devel
mailing list