mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
feed the content of NAV_PACKET to the demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21348 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b78cffaa84
commit
dfdc991901
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user