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