[mythtv] Re: [mythtv-commits] Re: Ticket #303: Some code to guess the category of an insert cd/dvd

J. Donavan Stanley jdonavan at jdonavan.net
Sat Sep 10 13:44:57 UTC 2005

Leo Weppelman wrote:

>As you can see from the above code, the BuildExtensionMapList() function
>has the name ("VideoExtensions") and the #define (MEDIATYPE_MVIDEO) hard
>coded. So if a _new_ module, say mythrecepy, is also storing files with
>a certain suffix, you'll have to update the function with a line:
>    NewExtensionMap("RecepyExtensions", MEDIATYPE_MRECEPY);
>to facilitate this.

I'd wager that the number of new plugins that require access to new 
types of files will be fairly limited....  If it's a concern you could 
add a mechanism for the plugins to register themselves as handling 
certain file types with the detection code.  Honestly, now that I think 
about it, that's probably the best way to go for all of it.  Maybe just 
an optional parameter to the function that registers a plugin as a media 

More information about the mythtv-dev mailing list