diff --git a/src/servers/media_addon/main.cpp b/src/servers/media_addon/main.cpp index 3750eb468a..65023c02db 100644 --- a/src/servers/media_addon/main.cpp +++ b/src/servers/media_addon/main.cpp @@ -16,15 +16,13 @@ #include "DataExchange.h" #include "DormantNodeManager.h" #include "Notifications.h" +#include "MediaMisc.h" +#include "MediaRosterEx.h" //#define USER_ADDON_PATH "../add-ons/media" void DumpFlavorInfo(const flavor_info *info); -namespace BPrivate { namespace media { - extern team_id team; -} } // BPrivate::media - class MediaAddonServer : BApplication { public: @@ -88,7 +86,7 @@ MediaAddonServer::HandleMessage(int32 code, const void *data, size_t size) const addonserver_instantiate_dormant_node_request *request = static_cast(data); addonserver_instantiate_dormant_node_reply reply; status_t rv; - rv = mediaroster->InstantiateDormantNode(request->info, &reply.node); + rv = MediaRosterEx(mediaroster)->InstantiateDormantNode(request->addonid, request->flavorid, &reply.node); request->SendReply(rv, &reply, sizeof(reply)); break; }