From a0eefaaee68440f3d798c1146ac2f4fcd79982a4 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Wed, 17 Oct 2001 20:33:09 +0000 Subject: demux / input plugin interface change, init functions now have access to the full xine_t *xine. This should enable stream plugins to register SCR plugins. WARNING: delete old input plugins, otherwise xine will crash CVS patchset: 823 CVS date: 2001/10/17 20:33:09 --- src/demuxers/demux_mpeg.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/demuxers/demux_mpeg.c') diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index 155fa1ac5..a3d0f5939 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpeg.c,v 1.36 2001/10/09 18:49:33 miguelfreitas Exp $ + * $Id: demux_mpeg.c,v 1.37 2001/10/17 20:33:09 guenter Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -847,11 +847,12 @@ static int demux_mpeg_get_stream_length (demux_plugin_t *this_gen) { } -demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) { +demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) { - demux_mpeg_t *this; + demux_mpeg_t *this; + config_values_t *config; - if (iface != 3) { + if (iface != 4) { printf( "demux_mpeg: plugin doesn't support plugin API version %d.\n" "demux_mpeg: this means there's a version mismatch between xine and this " "demux_mpeg: demuxer plugin.\nInstalling current demux plugins should help.\n", @@ -859,7 +860,8 @@ demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) { return NULL; } - this = xmalloc (sizeof (demux_mpeg_t)); + this = xmalloc (sizeof (demux_mpeg_t)); + config = xine->config; xine_debug = config->lookup_int (config, "xine_debug", 0); this->demux_plugin.interface_version = DEMUXER_PLUGIN_IFACE_VERSION; -- cgit v1.2.3