Mercurial > mplayer.hg
annotate libmpdemux/open.c @ 17026:3c4b93bc0db3
10l
author | lorenm |
---|---|
date | Tue, 22 Nov 2005 05:32:28 +0000 |
parents | 6ff3379a0862 |
children | 6ac0b5f0d1ed |
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" |
1482 | 20 #include "demuxer.h" |
4551 | 21 #include "mf.h" |
1467 | 22 |
23 | |
9746 | 24 /// We keep these 2 for the gui atm, but they will be removed. |
15484 | 25 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
|
26 char* cdrom_device=NULL; |
5380
8a01cde9cf39
DVDnav support patch by David Holm and Kees Cook <mplayer@outflux.net>
arpi
parents:
4729
diff
changeset
|
27 |
1467 | 28 // Open a new stream (stdin/file/vcd/url) |
29 | |
9795 | 30 stream_t* open_stream(char* filename,char** options, int* file_format){ |
12223 | 31 // Check if playlist or unknown |
32 if (*file_format != DEMUXER_TYPE_PLAYLIST){ | |
33 *file_format=DEMUXER_TYPE_UNKNOWN; | |
34 } | |
35 | |
9746 | 36 if(!filename) { |
37 mp_msg(MSGT_OPEN,MSGL_ERR,"NULL filename, report this bug\n"); | |
38 return NULL; | |
39 } | |
1467 | 40 |
6320
12136df07dbd
common code to handle file/stdin/fifo opening, allows using named pipes and
arpi
parents:
5932
diff
changeset
|
41 //============ 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
|
42 |
9795 | 43 return open_stream_full(filename,STREAM_READ,options,file_format); |
1467 | 44 } |
1596 | 45 |