summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-14 01:40:32 +0100
committerwm4 <wm4@nowhere>2013-12-14 01:40:52 +0100
commit9bd7601c6da44e2566238bb97d5a8ff4f7bd688e (patch)
tree2baaddd6275a91110b0c28f6d3dc210b635105f4 /stream/stream_dvdnav.h
parent653980ac3a6f312f7f1343b0c8f8bcdd550fea89 (diff)
downloadmpv-9bd7601c6da44e2566238bb97d5a8ff4f7bd688e.tar.bz2
mpv-9bd7601c6da44e2566238bb97d5a8ff4f7bd688e.tar.xz
dvdnav: crappy hack to respect timed still frames
Before this, they were displayed forever. Since some dvd screens seem not to allow escaping from the still frame using the menu, this could get you stuck forever.
Diffstat (limited to 'stream/stream_dvdnav.h')
-rw-r--r--stream/stream_dvdnav.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/stream_dvdnav.h b/stream/stream_dvdnav.h
index cc8163e015..e27af6eb1e 100644
--- a/stream/stream_dvdnav.h
+++ b/stream/stream_dvdnav.h
@@ -40,11 +40,9 @@ enum mp_nav_event_type {
struct mp_nav_event {
enum mp_nav_event_type event;
union {
- /*
struct {
- int seconds;
+ int seconds; // -1: infinite
} still_frame;
- */
struct {
int display;
int sx, sy, ex, ey;
@@ -62,6 +60,7 @@ enum mp_nav_cmd_type {
MP_NAV_CMD_ENABLE, // enable interactive navigation
MP_NAV_CMD_DRAIN_OK, // acknowledge EVENT_DRAIN
MP_NAV_CMD_RESUME,
+ MP_NAV_CMD_SKIP_STILL, // after showing the frame in EVENT_STILL_FRAME
MP_NAV_CMD_MENU,
MP_NAV_CMD_MOUSE_POS,
};