summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_mpeg.c')
-rw-r--r--src/demuxers/demux_mpeg.c45
1 files changed, 19 insertions, 26 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c
index bc17bb9bc..09fe6a23d 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.24 2001/07/04 17:10:24 uid32519 Exp $
+ * $Id: demux_mpeg.c,v 1.25 2001/07/14 12:50:34 guenter Exp $
*
* demultiplexer for mpeg 1/2 program streams
* reads streams of variable blocksizes
@@ -590,7 +590,6 @@ static int demux_mpeg_get_status (demux_plugin_t *this_gen) {
static void demux_mpeg_start (demux_plugin_t *this_gen,
fifo_buffer_t *video_fifo,
fifo_buffer_t *audio_fifo,
- fifo_buffer_t *spu_fifo,
off_t pos,
gui_get_next_mrl_cb_t next_mrl_cb,
gui_branched_cb_t branched_cb)
@@ -760,32 +759,26 @@ static void demux_mpeg_close (demux_plugin_t *this) {
demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) {
- demux_mpeg_t *this = xmalloc (sizeof (demux_mpeg_t));
+ demux_mpeg_t *this;
- xine_debug = config->lookup_int (config, "xine_debug", 0);
-
- switch (iface) {
-
- case 1:
-
- this->demux_plugin.interface_version = DEMUXER_PLUGIN_IFACE_VERSION;
- this->demux_plugin.open = demux_mpeg_open;
- this->demux_plugin.start = demux_mpeg_start;
- this->demux_plugin.stop = demux_mpeg_stop;
- this->demux_plugin.close = demux_mpeg_close;
- this->demux_plugin.get_status = demux_mpeg_get_status;
- this->demux_plugin.get_identifier = demux_mpeg_get_id;
-
- return (demux_plugin_t *) this;
- break;
-
- default:
- fprintf(stderr,
- "Demuxer plugin doesn't support plugin API version %d.\n"
- "PLUGIN DISABLED.\n"
- "This means there's a version mismatch between xine and this "
- "demuxer plugin.\nInstalling current input plugins should help.\n",
+ if (iface != 2) {
+ 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 input plugins should help.\n",
iface);
return NULL;
}
+
+ this = xmalloc (sizeof (demux_mpeg_t));
+ xine_debug = config->lookup_int (config, "xine_debug", 0);
+
+ this->demux_plugin.interface_version = DEMUXER_PLUGIN_IFACE_VERSION;
+ this->demux_plugin.open = demux_mpeg_open;
+ this->demux_plugin.start = demux_mpeg_start;
+ this->demux_plugin.stop = demux_mpeg_stop;
+ this->demux_plugin.close = demux_mpeg_close;
+ this->demux_plugin.get_status = demux_mpeg_get_status;
+ this->demux_plugin.get_identifier = demux_mpeg_get_id;
+
+ return (demux_plugin_t *) this;
}