diff options
author | wm4 <wm4@nowhere> | 2012-11-19 00:28:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-20 18:00:15 +0100 |
commit | 6f6dfc5163c3e1442f1c480e3dbd645ecd740eb5 (patch) | |
tree | 9ea44dbaf27b76de50bd5fc4f1a93ac7efb7996f /core/path.h | |
parent | 9085b85729bb8eb8e4b96195f651308e912b443f (diff) | |
download | mpv-6f6dfc5163c3e1442f1c480e3dbd645ecd740eb5.tar.bz2 mpv-6f6dfc5163c3e1442f1c480e3dbd645ecd740eb5.tar.xz |
mplayer: fix potential issue when ao_play() fails
ao_play() can fail; in that case a negative error code is returned.
This error code is returned by write_to_ao() in turn. The function
fill_audio_out_buffers(), which calls write_to_ao(), doesn't check for
any error codes, and will likely trigger the assertion following the
function call. Change write_to_ao() to return 0 on failure to hopefully
prevent crashes when AOs fail.
Diffstat (limited to 'core/path.h')
0 files changed, 0 insertions, 0 deletions