aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/python/Components/Scanner.py2
-rw-r--r--lib/python/Plugins/Extensions/MediaPlayer/plugin.py9
-rw-r--r--lib/service/servicemp3.cpp3
3 files changed, 12 insertions, 2 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py
index f7e307b7..c217aa5c 100644
--- a/lib/python/Components/Scanner.py
+++ b/lib/python/Components/Scanner.py
@@ -32,6 +32,8 @@ def getType(file):
return "video/x-dvd-iso"
elif file[-12:].lower() == "video_ts.ifo":
return "video/x-dvd"
+ elif ext == "dat" and file[-11:-6].lower() == "avseq":
+ return "video/x-vcd"
return type
class Scanner:
diff --git a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
index c4282a07..25491b67 100644
--- a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
@@ -843,6 +843,15 @@ def filescan(**kwargs):
description = "View Movies...",
openfnc = filescan_open,
),
+ Scanner(mimetypes = ["video/x-vcd"],
+ paths_to_scan =
+ [
+ ScanPath(path = "mpegav", with_subdirs = False),
+ ],
+ name = "Video CD",
+ description = "View Video CD...",
+ openfnc = filescan_open,
+ ),
Scanner(mimetypes = ["audio/mpeg", "audio/x-wav", "application/ogg"],
paths_to_scan =
[
diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp
index 25c52933..0197d26f 100644
--- a/lib/service/servicemp3.cpp
+++ b/lib/service/servicemp3.cpp
@@ -195,7 +195,7 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp
if (!ext)
ext = filename;
- int is_mpeg_ps = !(strcasecmp(ext, ".mpeg") && strcasecmp(ext, ".mpg") && strcasecmp(ext, ".vob") && strcasecmp(ext, ".bin"));
+ int is_mpeg_ps = !(strcasecmp(ext, ".mpeg") && strcasecmp(ext, ".mpg") && strcasecmp(ext, ".vob") && strcasecmp(ext, ".bin") && strcasecmp(ext, ".dat"));
int is_mpeg_ts = !strcasecmp(ext, ".ts");
int is_matroska = !strcasecmp(ext, ".mkv");
int is_avi = !strcasecmp(ext, ".avi");
@@ -1092,7 +1092,6 @@ void eServiceMP3::gstCBsubtitleAvail(GstElement *element, GstBuffer *buffer, Gst
}
else
eDebug("on inactive element: %s (%p) saw subtitle: %s",sourceName, element, text);
- return TRUE;
}
RESULT eServiceMP3::enableSubtitles(eWidget *parent, ePyObject tuple)