15 #include <sys/cdrio.h>
20 #include "libmpdemux/demuxer.h"
23 /// We keep these 2 for the gui atm, but they will be removed.
25 char* cdrom_device
=NULL
;
27 int dvd_last_chapter
=0;
28 char* dvd_device
=NULL
;
31 // Open a new stream (stdin/file/vcd/url)
33 stream_t
* open_stream(char* filename
, struct MPOpts
*options
, int* file_format
)
35 // Check if playlist or unknown
36 if (*file_format
!= DEMUXER_TYPE_PLAYLIST
){
37 *file_format
=DEMUXER_TYPE_UNKNOWN
;
41 mp_msg(MSGT_OPEN
,MSGL_ERR
,"NULL filename, report this bug\n");
45 //============ Open STDIN or plain FILE ============
47 return open_stream_full(filename
,STREAM_READ
,options
,file_format
);