summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-11-24 13:19:41 +0000
committerphintuka <phintuka>2010-11-24 13:19:41 +0000
commitdca3215d4936ed241abbbfe289a257a03a1606ed (patch)
treeb3c4bdc8ab58bf48340a4b654b8478fb99930669
parent0d882f78bbf1138531eb153fc8b8420d1db6bc06 (diff)
downloadxineliboutput-dca3215d4936ed241abbbfe289a257a03a1606ed.tar.gz
xineliboutput-dca3215d4936ed241abbbfe289a257a03a1606ed.tar.bz2
Some more 1.2 compability changes for demux_ts
-rw-r--r--xine/BluRay/demux_ts.c10
1 files 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;