comparison libvo/vo_quartz.c @ 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 30db51086c84
children 21252725b639
comparison
equal deleted inserted replaced
14698:16b3c8e291ff 14699:779230cb313d
558 558
559 if(deviceHdl == NULL) 559 if(deviceHdl == NULL)
560 { 560 {
561 mp_msg(MSGT_VO, MSGL_FATAL, "Quartz error: Device ID %d do not exist, falling back to main device.\n", device_id); 561 mp_msg(MSGT_VO, MSGL_FATAL, "Quartz error: Device ID %d do not exist, falling back to main device.\n", device_id);
562 deviceHdl = GetMainDevice(); 562 deviceHdl = GetMainDevice();
563 device_id = 0;
563 break; 564 break;
564 } 565 }
565 } 566 }
566 567
567 deviceRect = (*deviceHdl)->gdRect; 568 deviceRect = (*deviceHdl)->gdRect;