diff options
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r-- | stream/stream_dvd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 58b32bcadf..b07f6feaa1 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -34,6 +34,7 @@ #include "m_struct.h" #include "stream_dvd.h" +#include "libmpdemux/demuxer.h" extern int stream_cache_size; /// We keep these 2 for the gui atm, but they will be removed. @@ -1113,6 +1114,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { stream->close = stream_dvd_close; stream->start_pos = (off_t)d->cur_pack*2048; stream->end_pos = (off_t)(d->cur_pgc->cell_playback[d->last_cell-1].last_sector)*2048; + *file_format = DEMUXER_TYPE_MPEG_PS; mp_msg(MSGT_DVD,MSGL_V,"DVD start=%d end=%d \n",d->cur_pack,d->cur_pgc->cell_playback[d->last_cell-1].last_sector); stream->priv = (void*)d; return STREAM_OK; |