[vlc-commits] codec: vorbis: be more verbose on init failure

Francois Cartegnie git at videolan.org
Mon Jul 9 16:15:10 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul  6 17:46:06 2018 +0200| [6722a7e01e549a9449ed972f881f8b8c6752c4d2] | committer: Francois Cartegnie

codec: vorbis: be more verbose on init failure

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

 modules/codec/vorbis.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index b64f5e4f5c..6a2740086f 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -802,7 +802,9 @@ static int OpenEncoder( vlc_object_t *p_this )
         {
             vorbis_info_clear( &p_sys->vi );
             free( p_enc->p_sys );
-            msg_Err( p_enc, "VBR mode initialisation failed" );
+            msg_Err( p_enc, "VBR mode initialisation failed %"PRIu8"x(%uHz,q=%d)",
+                     p_enc->fmt_in.audio.i_channels,
+                     p_enc->fmt_in.audio.i_rate, i_quality );
             return VLC_EGENERIC;
         }
 
@@ -834,7 +836,10 @@ static int OpenEncoder( vlc_object_t *p_this )
               i_max_bitrate > 0 ? i_max_bitrate * 1000: -1 ) )
           {
               vorbis_info_clear( &p_sys->vi );
-              msg_Err( p_enc, "CBR mode initialisation failed" );
+              msg_Err( p_enc, "CBR mode initialisation failed %"PRIu8"x(%uHz,r=%u)",
+                       p_enc->fmt_in.audio.i_channels,
+                       p_enc->fmt_in.audio.i_rate,
+                       p_enc->fmt_out.i_bitrate);
               free( p_enc->p_sys );
               return VLC_EGENERIC;
           }



More information about the vlc-commits mailing list