mpv/player
wm4 c9234d769d 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
2014-10-23 18:31:43 +02:00
..
lua osc.lua: add “bottombar” and “topbar” layouts 2014-10-23 13:02:32 +02:00
timeline matroska: look for all known matroska file extensions 2014-10-06 22:33:21 +02:00
audio.c player: fix exiting if both audio and video fail initializing 2014-10-23 18:31:43 +02:00
client.c client API: print properties set with -v 2014-10-23 15:13:05 +02:00
client.h lua: strictly free memory on errors 2014-10-19 05:51:37 +02:00
command.c command: print executed commands with -v 2014-10-23 15:13:05 +02:00
command.h command: remove hook cancellation mechanism 2014-10-20 23:43:10 +02:00
configfiles.c options: don't load per-file config files by default 2014-10-17 02:55:31 +02:00
core.h player: fix exiting if both audio and video fail initializing 2014-10-23 18:31:43 +02:00
discnav.c sd_lavc: strictly letter-box PGS subtitles 2014-10-21 11:37:32 +02:00
loadfile.c player: add stream selection by ffmpeg index 2014-10-21 13:19:20 +02:00
lua.c lua: fix non-sense 2014-10-23 15:13:05 +02:00
main.c player: shutdown all clients before actual uninit 2014-10-19 22:34:37 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
misc.c player: fix exiting if both audio and video fail initializing 2014-10-23 18:31:43 +02:00
osd.c player: show busy symbol on OSD if seeking takes too long 2014-10-22 16:11:44 +02:00
playloop.c player: fix --frames 2014-10-14 13:29:38 +02:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h
scripting.c osdep: limit thread names to 16 characters 2014-10-20 00:17:11 +02:00
sub.c player: move some libass setup code to sub.c 2014-10-03 23:10:18 +02:00
video.c player: fix exiting if both audio and video fail initializing 2014-10-23 18:31:43 +02:00