From 5db8abd33039c9cde8471992ef2387212e6a6110 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 30 Jan 2010 15:08:50 +0000 Subject: [PATCH] OSS player: convert device name to UTF-8 string. Originally committed to SVN as r4071. --- aegisub/src/audio_player_oss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_player_oss.cpp b/aegisub/src/audio_player_oss.cpp index 49c464779..8fcbff164 100644 --- a/aegisub/src/audio_player_oss.cpp +++ b/aegisub/src/audio_player_oss.cpp @@ -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"); }