diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-18 09:46:11 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-18 09:46:11 +0000 |
commit | bc2ab4625f1ccfea53e740dc4bc2a56ace3dc166 (patch) | |
tree | 3b608cb8dab670ac387b663c4c3e4802ce451a2e | |
parent | 15fe01cd87b19379482865977375c9d996055245 (diff) |
Unknown subdevice now is error (was - warning)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2967 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_vesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |