From bc2ab4625f1ccfea53e740dc4bc2a56ace3dc166 Mon Sep 17 00:00:00 2001 From: nick Date: Sun, 18 Nov 2001 09:46:11 +0000 Subject: [PATCH] Unknown subdevice now is error (was - warning) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2967 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vesa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c index 25f636659a..68c6ca2223 100644 --- a/libvo/vo_vesa.c +++ b/libvo/vo_vesa.c @@ -408,7 +408,7 @@ static uint32_t parseSubDevice(const char *sd) if(strcmp(sd,"dga") == 0) { flags &= ~(SUBDEV_NODGA); flags |= SUBDEV_FORCEDGA; } else if(memcmp(sd,"lvo:",4) == 0) lvo_name = &sd[4]; /* lvo_name will be valid within init() */ - else if(verbose) printf("vo_vesa: Unknown subcommand: %s\n", sd); + else { printf("vo_vesa: Unknown subdevice: %s\n", sd); return -1; } return flags; } @@ -544,6 +544,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 rgb2rgb_fnc = NULL; sd_flags = 0; if(vo_subdevice) sd_flags = parseSubDevice(vo_subdevice); + if(sd_flags == -1) return -1; if(flags & 0x8) { printf("vo_vesa: switch -flip is not supported\n");