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. =)
Isaac
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev