OSS player: convert device name to UTF-8 string.

Originally committed to SVN as r4071.
This commit is contained in:
Grigori Goronzy 2010-01-30 15:08:50 +00:00
parent f84b51531a
commit 5db8abd330

View file

@ -82,7 +82,7 @@ void OSSPlayer::OpenStream()
// Open device
wxString device = Options.AsText(_T("Audio OSS Device"));
dspdev = ::open(device, O_WRONLY, 0);
dspdev = ::open(device.mb_str(wxConvUTF8), O_WRONLY, 0);
if (dspdev < 0) {
throw _T("OSS player: opening device failed");
}