aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-05-22 00:10:03 +0200
committerMarton Balint <cus@passwd.hu>2012-05-24 23:48:52 +0200
commit7315e40a24e85e7f141db77951a4b14375fde55a (patch)
tree0aed07390745c5b7bbe8d3aeaf33ad1ea81d1edc /ffplay.c
parent8c9971c35ee8fd01978a592f8f364755494f9a9a (diff)
downloadffmpeg-7315e40a24e85e7f141db77951a4b14375fde55a.tar.gz
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 301dec6561..779c87967a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1839,8 +1839,13 @@ static int video_thread(void *arg)
int last_w = is->video_st->codec->width;
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;
+ }
filt_out = is->out_video_filter;
#endif