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
,char** options
, int* file_format
){
34 // Check if playlist or unknown
35 if (*file_format
!= DEMUXER_TYPE_PLAYLIST
){
36 *file_format
=DEMUXER_TYPE_UNKNOWN
;
40 mp_msg(MSGT_OPEN
,MSGL_ERR
,"NULL filename, report this bug\n");
44 //============ Open STDIN or plain FILE ============
46 return open_stream_full(filename
,STREAM_READ
,options
,file_format
);