From 79380dc836fea8a2c9a03e208c7a2ff16260fcec Mon Sep 17 00:00:00 2001 From: nplourde Date: Mon, 14 Feb 2005 21:28:21 +0000 Subject: set device id to 0 if the device selected on startup do not exist git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14700 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_quartz.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libvo') diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index 4ae9a827c0..7d0cbfcdee 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -560,6 +560,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32 { mp_msg(MSGT_VO, MSGL_FATAL, "Quartz error: Device ID %d do not exist, falling back to main device.\n", device_id); deviceHdl = GetMainDevice(); + device_id = 0; break; } } -- cgit v1.2.3