tremor uses integer types
[mplayer/glamo.git] / libmpdemux / stream_null.c
bloba494c7810d0e955dd3a60e3aaca37a02dd58febc
2 #include "config.h"
4 #include <stdlib.h>
5 #include <string.h>
7 #include "stream.h"
8 #include "demuxer.h"
10 #ifdef USE_TV
11 extern char* tv_param_channel;
12 #endif
15 static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
16 stream->type = STREAMTYPE_DUMMY;
18 if(strncmp("mf://",stream->url,5) == 0) {
19 *file_format = DEMUXER_TYPE_MF;
21 #ifdef USE_TV
22 else if (strncmp("tv://",stream->url,5) == 0) {
23 *file_format = DEMUXER_TYPE_TV;
24 if(stream->url[5] != '\0')
25 tv_param_channel = strdup(stream->url + 5);
27 #endif
28 return 1;
32 stream_info_t stream_info_null = {
33 "Null stream",
34 "null",
35 "Albeu",
36 "",
37 open_s,
39 #ifdef USE_TV
40 "tv",
41 #endif
42 "mf", "null", NULL },
43 NULL,
44 0 // Urls are an option string