summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-15 17:18:47 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-15 17:18:47 +0000
commitd98901ad15eedad7c9b26069dfc80197ad8f85f8 (patch)
treebb3d237b1c001c14dc09d4581aba6e3fa344b4a0 /stream
parent3624850220f21e9f51b6e185285f7ec05d14c9e7 (diff)
downloadmpv-d98901ad15eedad7c9b26069dfc80197ad8f85f8.tar.bz2
mpv-d98901ad15eedad7c9b26069dfc80197ad8f85f8.tar.xz
when cmd == MP_CMD_DVDNAV_SELECT set reset=1 only if dvdnav_button_activate() succeeds, to avoid unneeded resets in main()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19842 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index fe3ffe0e87..5be56942b4 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -478,7 +478,7 @@ int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button) {
break;
case MP_CMD_DVDNAV_SELECT:
status = dvdnav_button_activate(nav, pci);
- reset = 1;
+ if(status == DVDNAV_STATUS_OK) reset = 1;
break;
default:
mp_msg(MSGT_CPLAYER, MSGL_V, "Unknown DVDNAV cmd %d\n", cmd);