changeset 2966:8cd493fd5db7

Unknown subdevice now is error (was - warning)
author nick
date Sun, 18 Nov 2001 09:46:11 +0000
parents eb5e41e06ccc
children 3f4e4ade4897
files libvo/vo_vesa.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vesa.c	Sun Nov 18 09:45:49 2001 +0000
+++ b/libvo/vo_vesa.c	Sun Nov 18 09:46:11 2001 +0000
@@ -408,7 +408,7 @@
    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 @@
 	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");