OSDN Git Service

android/audio: Fix having declaration before code
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 9 Jan 2014 13:24:11 +0000 (15:24 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 9 Jan 2014 13:25:16 +0000 (15:25 +0200)
android/hal-audio.c

index 04615d9..d5e2069 100644 (file)
@@ -282,8 +282,9 @@ static int audio_open_output_stream(struct audio_hw_device *dev,
 static void audio_close_output_stream(struct audio_hw_device *dev,
                                        struct audio_stream_out *stream)
 {
+       struct a2dp_audio_dev *a2dp_dev = (struct a2dp_audio_dev *) dev;
+
        DBG("");
-       struct a2dp_audio_dev *a2dp_dev = (struct a2dp_audio_dev *)dev;
 
        free(stream);
        a2dp_dev->out = NULL;