summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_pes.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-10-17 20:33:09 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-10-17 20:33:09 +0000
commita0eefaaee68440f3d798c1146ac2f4fcd79982a4 (patch)
tree70058a0f49b8a15010c92464124e89ecfe41aabf /src/demuxers/demux_pes.c
parentadadd9b06d2ef9df5d82bee0e7049b29322ff9f1 (diff)
downloadxine-lib-a0eefaaee68440f3d798c1146ac2f4fcd79982a4.tar.gz
xine-lib-a0eefaaee68440f3d798c1146ac2f4fcd79982a4.tar.bz2
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
Diffstat (limited to 'src/demuxers/demux_pes.c')
-rw-r--r--src/demuxers/demux_pes.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/demuxers/demux_pes.c b/src/demuxers/demux_pes.c
index f493fc21c..25075b389 100644
--- a/src/demuxers/demux_pes.c
+++ b/src/demuxers/demux_pes.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_pes.c,v 1.8 2001/10/03 17:15:43 jkeil Exp $
+ * $Id: demux_pes.c,v 1.9 2001/10/17 20:33:09 guenter Exp $
*
* demultiplexer for mpeg 2 PES (Packetized Elementary Streams)
* reads streams of variable blocksizes
@@ -559,11 +559,12 @@ static int demux_pes_get_stream_length (demux_plugin_t *this_gen) {
return 0; /* FIXME: implement */
}
-demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) {
+demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) {
- demux_pes_t *this;
+ demux_pes_t *this;
+ config_values_t *config;
- if (iface != 3) {
+ if (iface != 4) {
printf( "demux_pes: plugin doesn't support plugin API version %d.\n"
"demux_pes: this means there's a version mismatch between xine and this "
"demux_pes: demuxer plugin.\nInstalling current demux plugins should help.\n",
@@ -571,7 +572,8 @@ demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) {
return NULL;
}
- this = xmalloc (sizeof (demux_pes_t));
+ this = xmalloc (sizeof (demux_pes_t));
+ config = xine->config;
xine_debug = config->lookup_int (config, "xine_debug", 0);
this->demux_plugin.interface_version = 3;