15 #include <sys/cdrio.h>
24 /// We keep these 2 for the gui atm, but they will be removed.
26 char* cdrom_device
=NULL
;
28 int dvd_last_chapter
=0;
29 char* dvd_device
=NULL
;
32 // Open a new stream (stdin/file/vcd/url)
34 stream_t
* open_stream(char* filename
,char** 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
);