Mercurial > mplayer.hg
annotate stream/stream_null.c @ 31523:7ab5787e625c
configure: Fix detection of SDL backend for vo_gl on OS X
SDL overrides main, and provides a prototype for SDL_main
which uses argc and argv. Since the prototype didn't match
the main() in the test program, it failed to compile, making
the test fail when it should have worked.
author | astrange |
---|---|
date | Wed, 30 Jun 2010 09:27:03 +0000 |
parents | ce0122361a39 |
children |
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 | 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 | 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 }; |