comparison stream/stream_mf.c @ 19301:097e5bc71210

added dedicated file for mf:// input
author ben
date Thu, 03 Aug 2006 19:43:02 +0000
parents
children ab8d6b6deb63
comparison
equal deleted inserted replaced
19300:0c7ad1c632cc 19301:097e5bc71210
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"
26 #include "demuxer.h"
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
37 stream_info_t stream_info_mf = {
38 "Multiple files input",
39 "mf",
40 "Benjamin Zores, Albeu",
41 "",
42 mf_stream_open,
43 { "mf", NULL },
44 NULL,
45 1
46 };