Browse Source

ffplay: force exit when filter configuration fails

Switching to visualization instead of exiting ffplay is a bit more tricky, so
just exit for now.

Fixes ticket 38.

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n1.0
Marton Balint 13 years ago
parent
commit
7315e40a24
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      ffplay.c

+ 6
- 1
ffplay.c View File

@@ -1839,8 +1839,13 @@ static int video_thread(void *arg)
int last_w = is->video_st->codec->width; int last_w = is->video_st->codec->width;
int last_h = is->video_st->codec->height; int last_h = is->video_st->codec->height;


if ((ret = configure_video_filters(graph, is, vfilters)) < 0)
if ((ret = configure_video_filters(graph, is, vfilters)) < 0) {
SDL_Event event;
event.type = FF_QUIT_EVENT;
event.user.data1 = is;
SDL_PushEvent(&event);
goto the_end; goto the_end;
}
filt_out = is->out_video_filter; filt_out = is->out_video_filter;
#endif #endif




Loading…
Cancel
Save