Mercurial > mplayer.hg
annotate stream/open.c @ 28121:2a6dfdf16b6b
#include sub.h instead of locally declaring vo_draw_text().
author | diego |
---|---|
date | Wed, 17 Dec 2008 00:06:03 +0000 |
parents | ab8d6b6deb63 |
children | 0f1b5b68af32 |
rev | line source |
---|---|
1467 | 1 |
4343
b0c8eed7473c
Extended DVD chapter specification. Remove -last-chapter option.
kmkaplan
parents:
4291
diff
changeset
|
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
parents:
19271
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
de7eddb3fd70
Change to use cdrom-device and dvd-device options needed for DVD/TV/VCD
albeu
parents:
4146
diff
changeset
|
25 char* cdrom_device=NULL; |
17191
6ac0b5f0d1ed
fix compilation when dvdkit and dvdread are not available
nicodvb
parents:
17012
diff
changeset
|
26 int dvd_chapter=1; |
6ac0b5f0d1ed
fix compilation when dvdkit and dvdread are not available
nicodvb
parents:
17012
diff
changeset
|
27 int dvd_last_chapter=0; |
6ac0b5f0d1ed
fix compilation when dvdkit and dvdread are not available
nicodvb
parents:
17012
diff
changeset
|
28 char* dvd_device=NULL; |
6ac0b5f0d1ed
fix compilation when dvdkit and dvdread are not available
nicodvb
parents:
17012
diff
changeset
|
29 int dvd_title=0; |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
4729
diff
changeset
|
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
12136df07dbd
common code to handle file/stdin/fifo opening, allows using named pipes and
arpi
parents:
5932
diff
changeset
|
44 //============ Open STDIN or plain FILE ============ |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6853
diff
changeset
|
45 |
9795 | 46 return open_stream_full(filename,STREAM_READ,options,file_format); |
1467 | 47 } |
1596 | 48 |