From: Michael Jerris Date: Wed, 14 Jan 2009 15:28:57 +0000 (+0000) Subject: fix build regression from rev 11162 X-Git-Tag: v1.0.3~744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed521c19d595da5ba3660fcb581b3c85db648307;p=thirdparty%2Ffreeswitch.git fix build regression from rev 11162 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11191 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index f099a3fc94..01c373df88 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -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) {