]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
typo from last commit
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 06:23:22 +0000 (01:23 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 06:23:22 +0000 (01:23 -0500)
src/mod/applications/mod_av/avformat.c

index 9b897381b805f4dad64b13df2f8c5432e78d12b8..2448d04a39c5f20aff2c14597258a5325480a2d9 100644 (file)
@@ -1578,10 +1578,6 @@ static switch_status_t av_file_read(switch_file_handle_t *handle, void *data, si
        av_file_context_t *context = (av_file_context_t *)handle->private_info;
        int size;
 
-       if ((flags & SVR_CHECK)) {
-               return SWITCH_STATUS_BREAK;
-       }
-
        if (!context->has_audio && context->has_video && switch_queue_size(context->eh.video_queue) > 0) {
                memset(data, 0, *len * handle->channels * 2);
                return SWITCH_STATUS_SUCCESS;
@@ -1722,6 +1718,10 @@ static switch_status_t av_file_read_video(switch_file_handle_t *handle, switch_f
 
        if (!context->has_video) return SWITCH_STATUS_FALSE;
 
+       if ((flags & SVR_CHECK)) {
+               return SWITCH_STATUS_BREAK;
+       }
+
        if (flags & SVR_FLUSH) max_delta = 0.02 * AV_TIME_BASE;
 
        if (context->last_img) {