diff options
author | wm4 <wm4@nowhere> | 2013-07-14 17:59:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-14 17:59:26 +0200 |
commit | e18ffd6b998858ca0797cb0ce4aabd4a509655dd (patch) | |
tree | 199bddd30923db1175a1331191eb86ba684e9e41 /stream/stream_tv.c | |
parent | 3e7d483ac89289f613138002be2043ec5f479bb0 (diff) | |
parent | 5ead20bdb3328d199dad693039d18e7a05eb2465 (diff) | |
download | mpv-e18ffd6b998858ca0797cb0ce4aabd4a509655dd.tar.bz2 mpv-e18ffd6b998858ca0797cb0ce4aabd4a509655dd.tar.xz |
Merge branch 'remove_old_demuxers'
The merged branch doesn't actually just remove old demuxers, but also
includes a branch of cleanups and some refactoring.
Conflicts:
stream/stream.c
Diffstat (limited to 'stream/stream_tv.c')
-rw-r--r-- | stream/stream_tv.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/stream/stream_tv.c b/stream/stream_tv.c index 595657dc43..d9a4636b00 100644 --- a/stream/stream_tv.c +++ b/stream/stream_tv.c @@ -2,6 +2,7 @@ * stream layer for TV Input, based on previous work from Albeu * * Copyright (C) 2006 Benjamin Zores + * Original author: Albeu * * This file is part of MPlayer. * @@ -26,7 +27,6 @@ #include <string.h> #include "stream.h" -#include "demux/demux.h" #include "core/m_option.h" #include "core/m_struct.h" #include "tv.h" @@ -97,22 +97,19 @@ tv_stream_close (stream_t *stream) stream->priv=NULL; } static int -tv_stream_open (stream_t *stream, int mode, void *opts, int *file_format) +tv_stream_open (stream_t *stream, int mode, void *opts) { stream->type = STREAMTYPE_TV; stream->priv = opts; stream->close=tv_stream_close; - *file_format = DEMUXER_TYPE_TV; + stream->demuxer = "tv"; return STREAM_OK; } const stream_info_t stream_info_tv = { - "TV Input", "tv", - "Benjamin Zores, Albeu", - "", tv_stream_open, { "tv", NULL }, &stream_opts, |