annotate stream/stream_null.c @ 32254:70cdc0575aff

Drop obsolete CONFIG_IPV6 #definition for FFmpeg from config.h.
author diego
date Tue, 21 Sep 2010 14:16:57 +0000
parents ce0122361a39
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30426
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
1 /*
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
2 * This file is part of MPlayer.
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
3 *
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
5 * it under the terms of the GNU General Public License as published by
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
7 * (at your option) any later version.
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
8 *
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
12 * GNU General Public License for more details.
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
13 *
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
14 * You should have received a copy of the GNU General Public License along
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
ce0122361a39 Add license header to all files missing it in the stream subdirectory.
diego
parents: 25211
diff changeset
17 */
9901
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
18
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
19 #include "config.h"
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
20
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
21 #include <stdlib.h>
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
22 #include <string.h>
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
23
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
24 #include "stream.h"
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
25
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
26 static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
27 stream->type = STREAMTYPE_DUMMY;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
28
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
29 return 1;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
30 }
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
31
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
32
25211
c1d17bd6683c Mark all stream_info_t as const
reimar
parents: 19312
diff changeset
33 const stream_info_t stream_info_null = {
9901
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
34 "Null stream",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
35 "null",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
36 "Albeu",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
37 "",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
38 open_s,
19301
097e5bc71210 added dedicated file for mf:// input
ben
parents: 19273
diff changeset
39 { "null", NULL },
9901
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
40 NULL,
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
41 0 // Urls are an option string
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
42 };