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:
parent
8af7112802
commit
ed6c04b1e5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user