From ed521c19d595da5ba3660fcb581b3c85db648307 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 14 Jan 2009 15:28:57 +0000 Subject: [PATCH] fix build regression from rev 11162 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {