Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed isCompatible() for web images not appearing.

  • Loading branch information...
commit ef3bfda8f5bbddb78c183451c3b3419b24a262fa 1 parent b04509f
Patrick Atoon authored January 15, 2012
2  src/main/java/net/pms/formats/Format.java
@@ -111,7 +111,7 @@ public void setType(int type) {
111 111
 	 *
112 112
 	 * @since 1.50.1
113 113
 	 */
114  
-	public final boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
  114
+	public boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
115 115
 		if (renderer != null) {
116 116
 			// Let the renderer configuration decide on native compatibility
117 117
 			return renderer.isCompatible(media, this);
10  src/main/java/net/pms/formats/WEB.java
@@ -31,7 +31,6 @@
31 31
 import net.pms.encoders.VideoLanVideoStreaming;
32 32
 
33 33
 public class WEB extends Format {
34  
-
35 34
 	/**
36 35
 	 * @deprecated Use {@link #isCompatible(DLNAMediaInfo, RendererConfiguration)} instead.
37 36
 	 * <p>
@@ -86,4 +85,13 @@ public boolean ps3compatible() {
86 85
 	public boolean transcodable() {
87 86
 		return true;
88 87
 	}
  88
+
  89
+	/**
  90
+	 * {@inheritDoc}
  91
+	 */
  92
+	@Override
  93
+	public boolean isCompatible(DLNAMediaInfo media, RendererConfiguration renderer) {
  94
+		// Emulating ps3compatible()
  95
+		return type == IMAGE;
  96
+	}
89 97
 }

0 notes on commit ef3bfda

Please sign in to comment.
Something went wrong with that request. Please try again.