summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-10 13:51:17 +0200
committerwm4 <wm4@nowhere>2016-09-10 13:51:17 +0200
commit7383b456823a2abd79fe2aaa3ae2c07f14ce3941 (patch)
tree9547a3bff735021a3497489b5da0e5d10f06732a /stream/stream.c
parentfdc5388f8cd938e5001cbfbaef63ca359ff67be8 (diff)
downloadmpv-7383b456823a2abd79fe2aaa3ae2c07f14ce3941.tar.bz2
mpv-7383b456823a2abd79fe2aaa3ae2c07f14ce3941.tar.xz
command: do not call mp_switch_track() before proper initialization
This is an awful corner-case party, because we've started to allow the user to send track-switching related commands before stream selection is done in the loading stage. If mp_switch_track() is called before this stream selection, it can behave inconsistently. So if we're in the pre-loading phase, we must set the stream selection options to get streams selected later, instead of calling this function. There seem to be some annoying circumstances that exclude mp_switch_track() from handling this logic too, so do it at all call-sites.
Diffstat (limited to 'stream/stream.c')
0 files changed, 0 insertions, 0 deletions