]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix locking issue
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Apr 2008 13:48:35 +0000 (13:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Apr 2008 13:48:35 +0000 (13:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8130 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c

index a0645408b26fd9adb05b99cd8885507c9d4a7cd9..21c5d3b69a28934822d7b7af0c45810b9108320f 100644 (file)
@@ -539,9 +539,10 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                return SWITCH_STATUS_SUCCESS;
        }
 
- get_samples:
        switch_mutex_lock(globals.device_lock);
 
+ get_samples:
+
        if ((samples = ReadAudioStream(globals.audio_stream, globals.read_frame.data, 
                                                                   globals.read_codec.implementation->samples_per_frame, 
                                                                   &globals.timer)) == 0) {