Ticket #303: extensions-plugins.diff

File extensions-plugins.diff, 1.4 KB (added by leo weppelman, 15 years ago)

extend REG_MEDIA_HANDLER to handle extensions (mythplugins-part)

  • mythdvd/mythdvd/main.cpp

     
    278278void initKeys(void)
    279279{
    280280    REG_JUMP("Play DVD", "Play a DVD", "", playDVD);
    281     REG_MEDIA_HANDLER("MythDVD DVD Media Handler", "", "", handleDVDMedia, MEDIATYPE_DVD);
     281    REG_MEDIA_HANDLER("MythDVD DVD Media Handler", "", "", handleDVDMedia, MEDIATYPE_DVD, NULL);
    282282#ifdef VCD_SUPPORT
    283283    REG_JUMP("Play VCD", "Play a VCD", "", playVCD);
    284     REG_MEDIA_HANDLER("MythDVD VCD Media Handler", "", "", handleVCDMedia, MEDIATYPE_VCD);
     284    REG_MEDIA_HANDLER("MythDVD VCD Media Handler", "", "", handleVCDMedia, MEDIATYPE_VCD, NULL);
    285285#endif
    286286#ifdef TRANSCODE_SUPPORT
    287287    REG_JUMP("Rip DVD", "Import a DVD into your MythVideo database", "",
  • mythmusic/mythmusic/main.cpp

     
    394394    REG_KEY("Music", "THMBDOWN", "Decrease rating", "7");
    395395    REG_KEY("Music", "REFRESH", "Refresh music tree", "8");
    396396
    397     REG_MEDIA_HANDLER("MythMusic Media Handler", "", "", handleMedia, MEDIATYPE_AUDIO | MEDIATYPE_MIXED);
     397    REG_MEDIA_HANDLER("MythMusic Media Handler", "", "", handleMedia, MEDIATYPE_AUDIO | MEDIATYPE_MIXED, NULL);
    398398}
    399399
    400400int mythplugin_init(const char *libversion)