Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed isCompatible() for web images not appearing.

  • Loading branch information...
commit ef3bfda8f5bbddb78c183451c3b3419b24a262fa 1 parent b04509f
@Raptor399 authored
View
2  src/main/java/net/pms/formats/Format.java
@@ -111,7 +111,7 @@ public void setType(int type) {
*
* @since 1.50.1
*/
- public final boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
+ public boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
if (renderer != null) {
// Let the renderer configuration decide on native compatibility
return renderer.isCompatible(media, this);
View
10 src/main/java/net/pms/formats/WEB.java
@@ -31,7 +31,6 @@
import net.pms.encoders.VideoLanVideoStreaming;
public class WEB extends Format {
-
/**
* @deprecated Use {@link #isCompatible(DLNAMediaInfo, RendererConfiguration)} instead.
* <p>
@@ -86,4 +85,13 @@ public boolean ps3compatible() {
public boolean transcodable() {
return true;
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
+ // Emulating ps3compatible()
+ return type == IMAGE;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.