summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-18 09:46:11 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-18 09:46:11 +0000
commitbc2ab4625f1ccfea53e740dc4bc2a56ace3dc166 (patch)
tree3b608cb8dab670ac387b663c4c3e4802ce451a2e /libvo
parent15fe01cd87b19379482865977375c9d996055245 (diff)
downloadmpv-bc2ab4625f1ccfea53e740dc4bc2a56ace3dc166.tar.bz2
mpv-bc2ab4625f1ccfea53e740dc4bc2a56ace3dc166.tar.xz
Unknown subdevice now is error (was - warning)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2967 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c3
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");