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