Skip to content

Commit

Permalink
Fix #1274 : because the id is cloned too, multiple DLNAResources had …
Browse files Browse the repository at this point in the history
…the same

ID, and when the user clicked on the second element of the list, it is resolved to the first one (the first element
is the original file, the second is the file without subtitle), this is commited in r1001
  • Loading branch information
gzsombor committed Nov 23, 2011
1 parent a940c0d commit c7dac63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/pms/dlna/DLNAResource.java
Expand Up @@ -555,6 +555,7 @@ public void addChild(DLNAResource child) {
VirtualFolder fileFolder = new FileTranscodeVirtualFolder(child.getName(), null);

DLNAResource newChild = (DLNAResource) child.clone();
newChild.setId(null);
newChild.setPlayer(pl);
newChild.setMedia(child.getMedia());
// newChild.original = child;
Expand Down

0 comments on commit c7dac63

Please sign in to comment.