mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 07:04:43 +00:00
get_video_desc_from_string: print error if unknown
Print an error if unknown mode was given, which could give the user a guidance what is wrong, eg.: `uv -t testcard:mode=bogus` outputted just`[testcard] Wrong video size, given: 0x0`, which isn't much helpful. Now it outputs also `[video] Unrecognized video mode: bogus`
This commit is contained in:
@@ -350,6 +350,7 @@ struct video_desc get_video_desc_from_string(const char *string)
|
||||
ret.height = 2160;
|
||||
}
|
||||
if (ret.width == 0) {
|
||||
MSG(ERROR, "Unrecognized video mode: %s\n", string);
|
||||
return {};
|
||||
}
|
||||
ret.fps = parse_fps(string, ret.interlacing == INTERLACED_MERGED);
|
||||
|
||||
Reference in New Issue
Block a user