1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 03:32:50 +00:00

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
This commit is contained in:
nplourde 2005-02-14 21:28:21 +00:00
parent 0fa58569d7
commit 79380dc836

View File

@ -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;
}
}