Ticket #3217: mythtv-mythxml-wo-upnp.patch

File mythtv-mythxml-wo-upnp.patch, 869 bytes (added by geoffrey.antos@…, 4 years ago)

Patch to enable always enable MythXML, regardless of whether UPnP will be used.

  • programs/mythbackend/mediaserver.cpp

     
    6767    m_sSharePath = gContext->GetShareDir(); 
    6868    m_pHttpServer->m_sSharePath = m_sSharePath; 
    6969 
     70    MythXML* mythxml = new MythXML( NULL ); 
     71    m_pHttpServer->RegisterExtension( mythxml ); 
    7072 
    7173    if (sIP == "localhost" || sIP == "127.0.0.1") 
    7274    { 
     
    126128 
    127129        VERBOSE(VB_UPNP, "MediaServer::Registering MythXML Service." ); 
    128130 
    129         m_pHttpServer->RegisterExtension( new MythXML( pMythDevice )); 
     131        mythxml->RegisterService( pMythDevice ); 
    130132 
    131133        // ------------------------------------------------------------------ 
    132134        // Register any HttpServerExtensions... Only The Master Backend