[mythtv] Re: [mythtv-commits] Re: Ticket #303: Some code to guess
the category of an insert cd/dvd
ijr at case.edu
Sat Sep 10 08:43:03 UTC 2005
On Saturday 10 September 2005 03:55 am, 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.
> You can get around this by not using gContext->GetSetting() but writing
> a query that selects the '%Extensions" entry from the settings table and
> insert the info of each row returned using NewExtensionMap().
> This is what I tried to explain in my previous posting to this thread.
Have a RegisterExtensionMap() function that a plugin can call to add its list
of stuff. Simpler. Doesn't need the MEDIATYPE_* stuff. =)
More information about the mythtv-dev