changeset 14699:779230cb313d

set device id to 0 if the device selected on startup do not exist
author nplourde
date Mon, 14 Feb 2005 21:28:21 +0000
parents 16b3c8e291ff
children db451cd8ea37
files libvo/vo_quartz.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Mon Feb 14 13:29:55 2005 +0000
+++ b/libvo/vo_quartz.c	Mon Feb 14 21:28:21 2005 +0000
@@ -560,6 +560,7 @@
 		{
 			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;
 		}
 	}