Use proper resource loading for Upnp Logo #320
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ public class UPnPService {
|
||||
new ModelDetails(serverName),
|
||||
new DLNADoc[]{new DLNADoc("DMS", DLNADoc.Version.V1_5)}, null);
|
||||
|
||||
Icon icon = new Icon("image/png", 512, 512, 32, getClass().getResource("logo-512.png"));
|
||||
Icon icon = new Icon("image/png", 512, 512, 32, "logo-512", getClass().getResourceAsStream("logo-512.png"));
|
||||
|
||||
LocalService<FolderBasedContentDirectory> contentDirectoryservice = new AnnotationLocalServiceBinder().read(FolderBasedContentDirectory.class);
|
||||
contentDirectoryservice.setManager(new DefaultServiceManager<FolderBasedContentDirectory>(contentDirectoryservice) {
|
||||
|
||||
Reference in New Issue
Block a user