forked from mia/Aegisub
OSS player: convert device name to UTF-8 string.
Originally committed to SVN as r4071.
This commit is contained in:
parent
f84b51531a
commit
5db8abd330
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ void OSSPlayer::OpenStream()
|
||||||
|
|
||||||
// Open device
|
// Open device
|
||||||
wxString device = Options.AsText(_T("Audio OSS 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) {
|
if (dspdev < 0) {
|
||||||
throw _T("OSS player: opening device failed");
|
throw _T("OSS player: opening device failed");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue