]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build regression from rev 11162
authorMichael Jerris <mike@jerris.com>
Wed, 14 Jan 2009 15:28:57 +0000 (15:28 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 14 Jan 2009 15:28:57 +0000 (15:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11191 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_local_stream/mod_local_stream.c

index f099a3fc9430a8cc1270b18dc977f0f76c85258f..01c373df889331d445345523acf5905629f737de 100644 (file)
@@ -204,9 +204,10 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
                        }
 
                        while (RUNNING) {
+                               int is_open;
                                switch_core_timer_next(&timer);
                                olen = source->samples;
-                               int is_open = switch_test_flag((&fh), SWITCH_FILE_OPEN);
+                               is_open = switch_test_flag((&fh), SWITCH_FILE_OPEN);
 
                                if (is_open) {
                                        if (switch_core_file_read(&fh, abuf, &olen) != SWITCH_STATUS_SUCCESS || !olen) {