Mercurial > mplayer.hg
view libmpdemux/stream_null.c @ 17362:9179e0c4340b
1.1201: Explain DVDREAD_NOKEYS environment variable.
1.1200: [does not apply / previously applied]
1.1199: Expand the configuration file section to include MEncoder examples.
1.1198: [does not apply]
1.1197: removed frame reording option
1.1196: small wording/spelling/syntax fixes
1.1195: add bitexact's lavd flag desc.
1.1194: [left out for later work on x264!]
author | kraymer |
---|---|
date | Wed, 11 Jan 2006 23:43:55 +0000 |
parents | 233802490b0e |
children |
line wrap: on
line source
#include "config.h" #include <stdlib.h> #include <string.h> #include "stream.h" #include "demuxer.h" #ifdef USE_TV extern char* tv_param_channel; #endif static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { stream->type = STREAMTYPE_DUMMY; if(strncmp("mf://",stream->url,5) == 0) { *file_format = DEMUXER_TYPE_MF; } #ifdef USE_TV else if (strncmp("tv://",stream->url,5) == 0) { *file_format = DEMUXER_TYPE_TV; if(stream->url[5] != '\0') tv_param_channel = strdup(stream->url + 5); } #endif return 1; } stream_info_t stream_info_null = { "Null stream", "null", "Albeu", "", open_s, { #ifdef USE_TV "tv", #endif "mf", "null", NULL }, NULL, 0 // Urls are an option string };