try using cdiocddasrc for external usb optical drives too and make audio cd primary...
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 30 Jul 2008 15:05:26 +0000 (15:05 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 30 Jul 2008 15:05:26 +0000 (15:05 +0000)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
lib/service/servicemp3.cpp

index 2ebcb61..27b4776 100644 (file)
@@ -820,7 +820,7 @@ def filescan(**kwargs):
                )]
        try:
                from Plugins.Extensions.CDInfo.plugin import Query
-               mediatypes.append(Scanner(mimetypes = ["audio/x-cda", "audio/x-wav"],
+               mediatypes.insert(0,Scanner(mimetypes = ["audio/x-cda", "audio/x-wav"],
                        paths_to_scan =
                                [
                                        ScanPath(path = "", with_subdirs = False),
index fb76728..aef4f5e 100644 (file)
@@ -140,7 +140,7 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp
        int is_mp3 = !strcasecmp(ext, ".mp3"); /* force mp3 instead of decodebin */
        int is_video = is_mpeg_ps || is_mpeg_ts || is_matroska || is_avi;
        int is_streaming = !strncmp(filename, "http://", 7);
-       int is_AudioCD = !(strncmp(filename, "/autofs/hda/track-", 18) || strcasecmp(ext, ".wav"));
+       int is_AudioCD = !(strncmp(filename, "/autofs/", 8) || strncmp(filename+strlen(filename)-13, "/track-", 7) || strcasecmp(ext, ".wav"));
        
        eDebug("filename: %s, is_mpeg_ps: %d, is_mpeg_ts: %d, is_video: %d, is_streaming: %d, is_mp3: %d, is_matroska: %d, is_avi: %d, is_AudioCD: %d", filename, is_mpeg_ps, is_mpeg_ts, is_video, is_streaming, is_mp3, is_matroska, is_avi, is_AudioCD);