AESinkPulse: Remember actual channel name when mapping layout
authorfritsch <Peter.Fruehberger@gmail.com>
Wed, 29 Jan 2014 16:13:37 +0000 (17:13 +0100)
committerfritsch <Peter.Fruehberger@gmail.com>
Wed, 29 Jan 2014 16:13:37 +0000 (17:13 +0100)
xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp

index 14ac2e8..fa1635e 100644 (file)
@@ -282,7 +282,10 @@ static pa_channel_map AEChannelMapToPAChannel(CAEChannelInfo info)
   {
     pos = AEChannelToPAChannel(info[i]);
     if(pos != PA_CHANNEL_POSITION_INVALID)
-      map.channels++;
+    {
+      // remember channel name and increase channel count
+      map.map[map.channels++] = pos;
+    }
   }
   return map;
 }