/src/mpv/stream/stream_mpv.c
Line | Count | Source |
1 | | /* |
2 | | * This file is part of mpv. |
3 | | * |
4 | | * mpv is free software; you can redistribute it and/or |
5 | | * modify it under the terms of the GNU Lesser General Public |
6 | | * License as published by the Free Software Foundation; either |
7 | | * version 2.1 of the License, or (at your option) any later version. |
8 | | * |
9 | | * mpv is distributed in the hope that it will be useful, |
10 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | | * GNU Lesser General Public License for more details. |
13 | | * |
14 | | * You should have received a copy of the GNU Lesser General Public |
15 | | * License along with mpv. If not, see <http://www.gnu.org/licenses/>. |
16 | | */ |
17 | | |
18 | | #include "stream.h" |
19 | | |
20 | | #include <misc/path_utils.h> |
21 | | #include <player/core.h> |
22 | | |
23 | | static int open_mpv(stream_t *st) |
24 | 46 | { |
25 | 46 | st->demuxer = "mpv"; |
26 | 46 | return STREAM_OK; |
27 | 46 | } |
28 | | |
29 | | const stream_info_t stream_info_mpv = { |
30 | | .name = "mpv", |
31 | | .open = open_mpv, |
32 | | .stream_origin = STREAM_ORIGIN_NET, |
33 | | .protocols = (const char*const[]){"mpv", NULL}, |
34 | | }; |