1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

lavfi: stop playback on some unrecoverable situations

Also improve the error message for the missing label case.
This commit is contained in:
wm4 2016-02-10 21:49:44 +01:00
parent 8af7112802
commit ed6c04b1e5

View File

@ -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 {