[vlc-devel] [PATCH 3/4] mmdevice: handle flush errors
Thomas Guillem
thomas at gllm.fr
Mon May 23 09:39:24 CEST 2016
---
modules/audio_output/mmdevice.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 8082363..a21a1ef 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -163,10 +163,13 @@ static void Pause(audio_output_t *aout, bool paused, mtime_t date)
static void Flush(audio_output_t *aout, bool wait)
{
aout_sys_t *sys = aout->sys;
+ HRESULT hr;
EnterMTA();
- aout_stream_Flush(sys->stream, wait);
+ hr = aout_stream_Flush(sys->stream, wait);
LeaveMTA();
+
+ vlc_FromHR(aout, hr);
}
static int VolumeSet(audio_output_t *aout, float vol)
--
2.8.1
More information about the vlc-devel
mailing list