[vlc-commits] smf: no need to set audio channels

Rémi Denis-Courmont git at videolan.org
Sun Aug 7 09:32:09 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug  7 10:31:13 2011 +0300| [4e94b60cb5961c6e276d9db98b44186773fceb99] | committer: Rémi Denis-Courmont

smf: no need to set audio channels

The decoder takes care of that.

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

 modules/demux/smf.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index 8d51783..b688b5f 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -26,7 +26,6 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_demux.h>
-#include <vlc_aout.h>
 #include <vlc_charset.h>
 #include <limits.h>
 
@@ -231,8 +230,6 @@ static int Open (vlc_object_t * p_this)
     es_format_t  fmt;
     es_format_Init (&fmt, AUDIO_ES, VLC_CODEC_MIDI);
     fmt.audio.i_channels = 2;
-    fmt.audio.i_original_channels = fmt.audio.i_physical_channels =
-        AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
     fmt.audio.i_rate = 44100; /* dummy value */
     p_sys->es = es_out_Add (p_demux->out, &fmt);
 



More information about the vlc-commits mailing list