summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-27 23:21:23 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-27 23:21:23 +0000
commitdfdc991901369baf9b19ec9f6aaf4a6d20da0934 (patch)
tree277b03b5a5df0e630cda082da5399f0607b61089 /stream/stream_dvdnav.c
parentb78cffaa845d4a979b8a64ad021b758a6dcfbdde (diff)
downloadmpv-dfdc991901369baf9b19ec9f6aaf4a6d20da0934.tar.bz2
mpv-dfdc991901369baf9b19ec9f6aaf4a6d20da0934.tar.xz
feed the content of NAV_PACKET to the demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21348 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 7dc566b577..1ed36062c8 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -159,6 +159,8 @@ static int dvdnav_stream_read(dvdnav_priv_t * priv, unsigned char *buf, int *len
else if (event!=DVDNAV_BLOCK_OK) {
// need to handle certain events internally (like skipping stills)
switch (event) {
+ case DVDNAV_NAV_PACKET:
+ return event;
case DVDNAV_STILL_FRAME: {
dvdnav_still_event_t *still_event = (dvdnav_still_event_t*)(buf);
//if (priv->started) dvd_nav_still=1;
@@ -250,6 +252,7 @@ static int fill_buffer(stream_t *s, char *but, int len)
switch (event) {
case DVDNAV_STOP: return len;
case DVDNAV_BLOCK_OK: return len;
+ case DVDNAV_NAV_PACKET: return len;
case DVDNAV_VTS_CHANGE: {
int tit = 0, part = 0;
s->end_pos = 0;