]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
typo
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 06:33:58 +0000 (01:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 06:33:58 +0000 (01:33 -0500)
src/mod/formats/mod_vlc/mod_vlc.c

index 7bedd16c2223798455f826890dd9b8777a08e711..32798099befb032a8e6d056543f0e2d3e4e4b4c0 100644 (file)
@@ -1063,10 +1063,6 @@ static switch_status_t vlc_file_read(switch_file_handle_t *handle, void *data, s
        size_t bytes = *len * sizeof(int16_t) * handle->channels, read;
        libvlc_state_t status;
 
-       if ((flags & SVR_CHECK)) {
-               return SWITCH_STATUS_BREAK;
-       }
-
        if (switch_test_flag(handle, SWITCH_FILE_FLAG_VIDEO)) {
                return vlc_file_av_read(handle, data, len);
        }
@@ -1136,6 +1132,10 @@ static switch_status_t vlc_file_read_video(switch_file_handle_t *handle, switch_
                return SWITCH_STATUS_FALSE;
        }
        
+       if ((flags & SVR_CHECK)) {
+               return SWITCH_STATUS_BREAK;
+       }
+
        while((flags & SVR_FLUSH) && switch_queue_size(vcontext->video_queue) > 1) {
                if (switch_queue_trypop(vcontext->video_queue, &pop) == SWITCH_STATUS_SUCCESS) {
                        switch_image_t *img = (switch_image_t *) pop;