Mercurial > mplayer.hg
annotate stream/stream_mf.c @ 25279:2838dc7a68f3
initial submit for revision... 24% synced with r22753
author | ptt |
---|---|
date | Wed, 05 Dec 2007 19:06:12 +0000 |
parents | c1d17bd6683c |
children | a26e50cae389 |
rev | line source |
---|---|
19301 | 1 /* |
2 * Copyright (C) 2006 Benjamin Zores | |
3 * Stream layer for multiple files input, based on previous work from Albeu | |
4 * | |
5 * This program is free software; you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; either version 2 of the License, or | |
8 * (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
16 * along with this program; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
18 */ | |
19 | |
20 #include "config.h" | |
21 | |
22 #include <stdlib.h> | |
23 #include <string.h> | |
24 | |
25 #include "stream.h" | |
19312
ab8d6b6deb63
proper inclusion of demuxer.h (including libmpdemux in Makefile only was to make previous split easier)
ben
parents:
19301
diff
changeset
|
26 #include "libmpdemux/demuxer.h" |
19301 | 27 |
28 static int | |
29 mf_stream_open (stream_t *stream, int mode, void *opts, int *file_format) | |
30 { | |
31 stream->type = STREAMTYPE_MF; | |
32 *file_format = DEMUXER_TYPE_MF; | |
33 | |
34 return STREAM_OK; | |
35 } | |
36 | |
25211 | 37 const stream_info_t stream_info_mf = { |
19301 | 38 "Multiple files input", |
39 "mf", | |
40 "Benjamin Zores, Albeu", | |
41 "", | |
42 mf_stream_open, | |
43 { "mf", NULL }, | |
44 NULL, | |
45 1 | |
46 }; |