From dca3215d4936ed241abbbfe289a257a03a1606ed Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 24 Nov 2010 13:19:41 +0000 Subject: Some more 1.2 compability changes for demux_ts --- xine/BluRay/demux_ts.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xine/BluRay/demux_ts.c b/xine/BluRay/demux_ts.c index cb9eb5a0..edf285ed 100644 --- a/xine/BluRay/demux_ts.c +++ b/xine/BluRay/demux_ts.c @@ -2572,13 +2572,17 @@ static const char *get_identifier (demux_class_t *this_gen) { } #endif +#if DEMUX_PLUGIN_IFACE_VERSION < 27 static const char *get_extensions (demux_class_t *this_gen) { return "m2ts mts"; } +#endif +#if DEMUX_PLUGIN_IFACE_VERSION < 27 static const char *get_mimetypes (demux_class_t *this_gen) { return NULL; } +#endif static void class_dispose (demux_class_t *this_gen) { @@ -2599,12 +2603,14 @@ static void *init_class (xine_t *xine, void *data) { #if DEMUX_PLUGIN_IFACE_VERSION < 27 this->demux_class.get_description = get_description; this->demux_class.get_identifier = get_identifier; + this->demux_class.get_mimetypes = get_mimetypes; + this->demux_class.get_extensions = get_extensions; #else this->demux_class.description = "MPEG Transport Stream demuxer (HDMV)"; this->demux_class.identifier = "MPEG_TS_HDMV"; + this->demux_class.mimetypes = NULL; + this->demux_class.extensions = "m2ts mts"; #endif - this->demux_class.get_mimetypes = get_mimetypes; - this->demux_class.get_extensions = get_extensions; this->demux_class.dispose = class_dispose; return this; -- cgit v1.2.3