Mercurial > mplayer.hg
annotate stream/stream_mf.c @ 23190:631dad12568b
Always deallocate glyphs. Fixes memory leak.
author | eugeni |
---|---|
date | Wed, 02 May 2007 10:15:12 +0000 |
parents | ab8d6b6deb63 |
children | c1d17bd6683c |
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 | |
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 }; |