Revision 8c982c5d

View differences:

ffplay.c
829 829
    SDL_UpdateRect(screen, s->xleft, s->ytop, s->width, s->height);
830 830
}
831 831

  
832
static int video_open(VideoState *is);
833

  
832 834
/* display the current picture, if any */
833 835
static void video_display(VideoState *is)
834 836
{
837
    if(!screen)
838
        video_open(cur_stream);
835 839
    if (is->audio_st && is->show_audio)
836 840
        video_audio_display(is);
837 841
    else if (is->video_st)
......
2481 2485

  
2482 2486
    cur_stream = stream_open(input_filename, file_iformat);
2483 2487

  
2484
    if(video_disable && !display_disable)
2485
        video_open(cur_stream);
2486

  
2487 2488
    event_loop();
2488 2489

  
2489 2490
    /* never returns */

Also available in: Unified diff