diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-03 20:52:50 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-03 20:52:50 +0000 |
| commit | f51d97f3ee2b0121ffe1fe789ca58c089408b980 (patch) | |
| tree | 4e1f76c406e65ec479fd0daf47af47a2ae7a97ad /lib | |
| parent | b6c21aa27e2a782996c625bc6e85a466bd7c9932 (diff) | |
| download | enigma2-f51d97f3ee2b0121ffe1fe789ca58c089408b980.tar.gz enigma2-f51d97f3ee2b0121ffe1fe789ca58c089408b980.zip | |
Allow playback of VCD (Video CD) and SVCD
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/Scanner.py | 2 | ||||
| -rw-r--r-- | lib/python/Plugins/Extensions/MediaPlayer/plugin.py | 9 | ||||
| -rw-r--r-- | lib/service/servicemp3.cpp | 3 |
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) |
