diff options
author | wm4 <wm4@nowhere> | 2014-10-23 18:31:43 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-23 20:27:32 +0200 |
commit | 0a40fb00b4acd51adc831334c601a534927b51da (patch) | |
tree | 6c42bd7eb148e5fad5184e7b5abb528cf9f3e002 /osdep/semaphore.h | |
parent | 3c8aecb711bde4928e13a785527cea6c986a1b75 (diff) | |
download | mpv-0a40fb00b4acd51adc831334c601a534927b51da.tar.bz2 mpv-0a40fb00b4acd51adc831334c601a534927b51da.tar.xz |
player: fix exiting if both audio and video fail initializing
The player was supposed to exit playback if both video and audio failed
to initialize (or if one of the streams was not selected when the other
stream failed). This didn't work; for one this check was missing from
one of the failure paths. And more importantly, both checked the
current_track array incorrectly.
Fix these issues, and move the failure handling code into a common
function.
CC: @mpv-player/stable
Conflicts:
player/audio.c
player/video.c
Diffstat (limited to 'osdep/semaphore.h')
0 files changed, 0 insertions, 0 deletions