mirror of https://github.com/FreeRDP/FreeRDP
Fixed waveOutClose, call waveOutReset first.
Signed-off-by: Armin Novak <armin.novak@thincast.com>
This commit is contained in:
parent
b0de74cad2
commit
e86849759a
|
@ -170,6 +170,10 @@ static void rdpsnd_winmm_close(rdpsndDevicePlugin* device)
|
|||
for (x = 0; x < SEM_COUNT_MAX; x++)
|
||||
WaitForSingleObject(winmm->semaphore, INFINITE);
|
||||
#endif
|
||||
mmResult = waveOutReset(winmm->hWaveOut);
|
||||
if (mmResult != MMSYSERR_NOERROR)
|
||||
WLog_Print(winmm->log, WLOG_ERROR, "waveOutReset failure: %" PRIu32 "", mmResult);
|
||||
|
||||
mmResult = waveOutClose(winmm->hWaveOut);
|
||||
if (mmResult != MMSYSERR_NOERROR)
|
||||
WLog_Print(winmm->log, WLOG_ERROR, "waveOutClose failure: %" PRIu32 "", mmResult);
|
||||
|
|
|
@ -21,7 +21,7 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
|
|||
-DWITH_SERVER=ON \
|
||||
-DWITH_CAIRO=ON \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_INSTALL_PREFIX=/opt/freerdp-nightly/ \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=include \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
|
|
Loading…
Reference in New Issue