diff options
author | wm4 <wm4@nowhere> | 2014-10-02 03:12:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-02 03:12:45 +0200 |
commit | f62f984404b860e5e94973d9250aae67d55162de (patch) | |
tree | 35b7c4478c977f0fca8d521e215cc00014c23add /player/video.c | |
parent | ae2e2b974077f13c48007635c399918125822286 (diff) | |
download | mpv-f62f984404b860e5e94973d9250aae67d55162de.tar.bz2 mpv-f62f984404b860e5e94973d9250aae67d55162de.tar.xz |
player: don't print audio/video init failure message twice
The messages "Audio: no audio" and "Video: no video" could be printed
twice each if initializing them failed. Prevent his silliness.
CC: @mpv-player/stable
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c index 3d308ae955..80acbf7b72 100644 --- a/player/video.c +++ b/player/video.c @@ -308,9 +308,9 @@ int reinit_video_chain(struct MPContext *mpctx) err_out: no_video: uninit_player(mpctx, INITIALIZED_VCODEC | (opts->force_vo ? 0 : INITIALIZED_VO)); - mp_deselect_track(mpctx, track); + if (track) + mp_deselect_track(mpctx, track); handle_force_window(mpctx, true); - MP_INFO(mpctx, "Video: no video\n"); return 0; } |