Skip to content

Commit

Permalink
fix #108: settings InstanceID prevents Samsung TV from throwing 500 I…
Browse files Browse the repository at this point in the history
…nternal Server Error
  • Loading branch information
alepar committed Dec 21, 2013
1 parent a5dde4a commit 8cd9f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import org.fourthline.cling.model.action.ActionInvocation;
import org.fourthline.cling.model.message.UpnpResponse;
import org.fourthline.cling.model.meta.Service;
import org.fourthline.cling.model.types.UnsignedIntegerFourBytes;
import org.fourthline.cling.support.avtransport.callback.Play;

public class WrappedPlay extends Wrapped {

public WrappedPlay(Service avTransport) {
action = new Play(avTransport) {
action = new Play(new UnsignedIntegerFourBytes("0"), avTransport) {
@Override
public void success(ActionInvocation invocation) {
onSuccess();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.fourthline.cling.model.action.ActionInvocation;
import org.fourthline.cling.model.message.UpnpResponse;
import org.fourthline.cling.model.meta.Service;
import org.fourthline.cling.model.types.UnsignedIntegerFourBytes;
import org.fourthline.cling.support.avtransport.callback.SetAVTransportURI;

public class WrappedSetTransportUri extends Wrapped {
Expand All @@ -11,7 +12,7 @@ public class WrappedSetTransportUri extends Wrapped {

public WrappedSetTransportUri(Service avTransport, String url) {
this.url = url;
action = new SetAVTransportURI(avTransport, url) {
action = new SetAVTransportURI(new UnsignedIntegerFourBytes("0"), avTransport, url) {
@Override
public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg) {
onFailure(defaultMsg);
Expand Down

0 comments on commit 8cd9f3f

Please sign in to comment.