From ed6c04b1e5d614d997a2862c5d81ced04389b0f6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 10 Feb 2016 21:49:44 +0100 Subject: lavfi: stop playback on some unrecoverable situations Also improve the error message for the missing label case. --- player/lavfi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/lavfi.c') diff --git a/player/lavfi.c b/player/lavfi.c index 76b47450ea..57f70fa443 100644 --- a/player/lavfi.c +++ b/player/lavfi.c @@ -121,7 +121,8 @@ static void add_pad(struct lavfi *c, enum lavfi_direction dir, AVFilterInOut *it } if (!item->name) { - MP_FATAL(c, "what the shit\n"); + MP_FATAL(c, "filter pad without name label\n"); + c->failed = true; return; } @@ -130,6 +131,7 @@ static void add_pad(struct lavfi *c, enum lavfi_direction dir, AVFilterInOut *it // Graph recreation case: reassociate an existing pad. if (p->dir != dir || p->type != type) { MP_FATAL(c, "pad '%s' changed type or direction\n", item->name); + c->failed = true; return; } } else { -- cgit v1.2.3