/src/mpv/stream/stream_avdevice.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 | | static int open_f(stream_t *stream) |
21 | 15.5k | { |
22 | 15.5k | stream->demuxer = "lavf"; |
23 | | |
24 | 15.5k | return STREAM_OK; |
25 | 15.5k | } |
26 | | |
27 | | const stream_info_t stream_info_avdevice = { |
28 | | .name = "avdevice", |
29 | | .open = open_f, |
30 | | .protocols = (const char*const[]){ "avdevice", "av", NULL }, |
31 | | .stream_origin = STREAM_ORIGIN_UNSAFE, |
32 | | }; |