osxaudiosink: fix segfault when we can't get the channels layout
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 6 Nov 2013 23:51:12 +0000 (00:51 +0100)
committerAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 6 Nov 2013 23:53:48 +0000 (00:53 +0100)
sys/osxaudio/gstosxcoreaudiohal.c

index b707af9..1c87361 100644 (file)
@@ -371,8 +371,9 @@ gst_core_audio_audio_device_get_channel_layout (AudioDeviceID device_id)
     }
   }
 
-beach:
   gst_core_audio_dump_channel_layout (layout);
+
+beach:
   return layout;
 
 failed: