Mercurial > mplayer.hg
view libmpdemux/stream_null.c @ 13168:ce046ef860da
EDL enhancement/fixes:
*Some edl's code moved from mplayer.c to edl.c (mencoder will use the
same functions)
* slighty faster
* removed MAX_EDL_ENTRIES limit (just reserve the memory we really need)
* really treat edl_records as a linked list (coz it is)
* edl now 'remembers' pending operations after a manual _seek_
* better way of handling Mute/Umute eliminates some nasty bugs
when manual seeking (scrwed up mute/unmute order, no audio after
seek, etc)
* seeking while on -edl mode now _WORKS_
Patch by Reynaldo H. Verdejo Pinochet (reynaldo at opendot dot cl)
author | rtognimp |
---|---|
date | Sat, 28 Aug 2004 00:46:05 +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 };