1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 04:15:13 +00:00
mpv/stream/stream_null.c
ben 1cad07f6cd add an explicit tv stream input instead of the previous hack in stream_null
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19279 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-31 18:36:29 +00:00

31 lines
480 B
C

#include "config.h"
#include <stdlib.h>
#include <string.h>
#include "stream.h"
#include "demuxer.h"
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;
}
return 1;
}
stream_info_t stream_info_null = {
"Null stream",
"null",
"Albeu",
"",
open_s,
{
"mf", "null", NULL },
NULL,
0 // Urls are an option string
};