]> git.sesse.net Git - vlc/commitdiff
DirectSound: always set the original_channels
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 12 Feb 2015 20:34:08 +0000 (21:34 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 12 Feb 2015 20:35:23 +0000 (21:35 +0100)
Ref #13826

modules/audio_output/directsound.c

index 3d1c2bd0116d8ad8d6fbc3c6be3e5379830278e3..2a1a06d749cf0cc2a44e4ef2466f3d74af50fdcd 100644 (file)
@@ -773,6 +773,8 @@ static HRESULT Start( vlc_object_t *obj, aout_stream_sys_t *sys,
         }
     }
 
+    fmt->i_original_channels = fmt->i_physical_channels;
+
     int ret = vlc_clone(&sys->eraser_thread, PlayedDataEraser, (void*) obj,
                         VLC_THREAD_PRIORITY_LOW);
     if( unlikely( ret ) )