]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/transcode.c
Added and used VLC_CODEC_MP3 when applicable.
[vlc] / modules / stream_out / transcode.c
index 00467d738f64941fca57435e789c6f063ee6ba0f..ce71eb8ef999ab6d87343b6d001c6ee3c4e78436 100644 (file)
@@ -433,8 +433,8 @@ static int Open( vlc_object_t *p_this )
 
     if( p_sys->i_acodec )
     {
-        if( p_sys->i_acodec == VLC_FOURCC('m','p','3',' ') &&
-            p_sys->i_channels > 2 )
+        if( ( p_sys->i_acodec == VLC_CODEC_MP3 ||
+              p_sys->i_acodec == VLC_CODEC_MPGA ) && p_sys->i_channels > 2 )
         {
             msg_Warn( p_stream, "%d channels invalid for mp3, forcing to 2",
                       p_sys->i_channels );