[mythtv-commits] mythtv commit: r10095 - in trunk by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Jun 1 05:26:54 UTC 2006


      Author: danielk
        Date: 2006-06-01 05:26:52 +0000 (Thu, 01 Jun 2006)
New Revision: 10095
   Changeset: http://cvs.mythtv.org/trac/changeset/10095

Modified:

   trunk/mythplugins/mythdvd/mythdvd/main.cpp
   trunk/mythplugins/mythgallery/mythgallery/main.cpp
   trunk/mythplugins/mythmusic/mythmusic/main.cpp
   trunk/mythtv/libs/libmyth/mythcdrom.cpp
   trunk/mythtv/libs/libmyth/mythcontext.h
   trunk/mythtv/libs/libmyth/mythmedia.cpp
   trunk/mythtv/libs/libmyth/mythmedia.h
   trunk/mythtv/libs/libmyth/mythmediamonitor.cpp
   trunk/mythtv/libs/libmyth/mythmediamonitor.h
   trunk/mythtv/libs/libmythui/mythmainwindow.cpp
   trunk/mythtv/libs/libmythui/mythmainwindow.h

Log:

Closes #303. Enhances media detection by looking at file name extensions with modified patch from Leo Weppelman.

If we can't detect a type other than "DATA" by any other means (such as used for DVDs and CDs), then with this patch we look at the file extensions, and select the media handler which will handle the greatest number of files on the device.

For example we count things such as "gif,jpg,png" and "ogg,mp3,aac,flac" and use the one with the highest file count to select mythgallery or mythmusic, resp. (This is assuming both media plugins are present.)

BTW This is surprisingly fast for the photo cd's I have laying around. 


NOTE:  This changes the MYTH_BINARY_VERSION, so plugins must be recompiled and installed after you've installed the updated mythtv libs.







More information about the mythtv-commits mailing list