summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-05 21:15:47 +0100
committerwm4 <wm4@nowhere>2016-02-05 23:17:27 +0100
commit242dbc6c2c985bfd4dd8df699c6df6c33f8889d1 (patch)
treeed8a16fcdab6c2b5ffd57405f493a55ee561b0f6 /player/video.c
parent1aa2ae5404d134815eddcb3f146a9c1f8bbfc2e9 (diff)
downloadmpv-242dbc6c2c985bfd4dd8df699c6df6c33f8889d1.tar.bz2
mpv-242dbc6c2c985bfd4dd8df699c6df6c33f8889d1.tar.xz
player: simplify error_on_track()
track can't be NLUL at this point, so the if is redundant. Remove it and unindent the block. Also, make the function check whether the track is selected at all, which makes it safer and idempotent.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions