[vlc-commits] mmdevice: handle flush errors
Thomas Guillem
git at videolan.org
Wed May 25 14:35:07 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu May 19 14:27:03 2016 +0200| [bca53c8fc296498c01158f208c721be213721315] | committer: Thomas Guillem
mmdevice: handle flush errors
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bca53c8fc296498c01158f208c721be213721315
---
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 a975ecc..aa657d3 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)
More information about the vlc-commits
mailing list