/src/mpv/stream/stream_mf.c
Line | Count | Source |
1 | | /* |
2 | | * stream layer for multiple files input, based on previous work from Albeu |
3 | | * |
4 | | * Copyright (C) 2006 Benjamin Zores |
5 | | * Original author: Albeu |
6 | | * |
7 | | * This file is part of mpv. |
8 | | * |
9 | | * mpv is free software; you can redistribute it and/or |
10 | | * modify it under the terms of the GNU Lesser General Public |
11 | | * License as published by the Free Software Foundation; either |
12 | | * version 2.1 of the License, or (at your option) any later version. |
13 | | * |
14 | | * mpv is distributed in the hope that it will be useful, |
15 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | * GNU Lesser General Public License for more details. |
18 | | * |
19 | | * You should have received a copy of the GNU Lesser General Public |
20 | | * License along with mpv. If not, see <http://www.gnu.org/licenses/>. |
21 | | */ |
22 | | |
23 | | #include <stdlib.h> |
24 | | #include <string.h> |
25 | | |
26 | | #include "stream.h" |
27 | | |
28 | | static int |
29 | | mf_stream_open (stream_t *stream) |
30 | 1.65k | { |
31 | 1.65k | stream->demuxer = "mf"; |
32 | | |
33 | 1.65k | return STREAM_OK; |
34 | 1.65k | } |
35 | | |
36 | | const stream_info_t stream_info_mf = { |
37 | | .name = "mf", |
38 | | .open = mf_stream_open, |
39 | | .protocols = (const char*const[]){ "mf", NULL }, |
40 | | .stream_origin = STREAM_ORIGIN_FS, |
41 | | }; |