1467
|
1
|
4343
|
2 #include <ctype.h>
|
1467
|
3 #include <stdio.h>
|
|
4 #include <stdlib.h>
|
|
5 #include <string.h>
|
|
6 #include <unistd.h>
|
|
7 #include <fcntl.h>
|
9746
|
8 #include <string.h>
|
1467
|
9
|
|
10 #include "config.h"
|
1567
|
11 #include "mp_msg.h"
|
1584
|
12 #include "help_mp.h"
|
1467
|
13
|
1468
|
14 #ifdef __FreeBSD__
|
|
15 #include <sys/cdrio.h>
|
|
16 #endif
|
|
17
|
17012
|
18 #include "m_option.h"
|
1467
|
19 #include "stream.h"
|
19312
ab8d6b6deb63
proper inclusion of demuxer.h (including libmpdemux in Makefile only was to make previous split easier)
ben
diff
changeset
|
20 #include "libmpdemux/demuxer.h"
|
1467
|
21
|
|
22
|
9746
|
23 /// We keep these 2 for the gui atm, but they will be removed.
|
15484
|
24 int vcd_track=0;
|
4222
|
25 char* cdrom_device=NULL;
|
17191
|
26 int dvd_chapter=1;
|
|
27 int dvd_last_chapter=0;
|
|
28 char* dvd_device=NULL;
|
|
29 int dvd_title=0;
|
5380
|
30
|
1467
|
31 // Open a new stream (stdin/file/vcd/url)
|
|
32
|
9795
|
33 stream_t* open_stream(char* filename,char** options, int* file_format){
|
12223
|
34 // Check if playlist or unknown
|
|
35 if (*file_format != DEMUXER_TYPE_PLAYLIST){
|
|
36 *file_format=DEMUXER_TYPE_UNKNOWN;
|
|
37 }
|
|
38
|
9746
|
39 if(!filename) {
|
|
40 mp_msg(MSGT_OPEN,MSGL_ERR,"NULL filename, report this bug\n");
|
|
41 return NULL;
|
|
42 }
|
1467
|
43
|
6320
|
44 //============ Open STDIN or plain FILE ============
|
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
diff
changeset
|
45
|
9795
|
46 return open_stream_full(filename,STREAM_READ,options,file_format);
|
1467
|
47 }
|
1596
|
48
|