Fixed music pausing after selecting renderer.

This commit is contained in:
Felix Ableitner 2013-06-19 00:59:11 +02:00
parent 7afd8a70eb
commit e9afc5b6ff

View file

@ -251,7 +251,7 @@ public class PlayService extends Service {
public void setRenderer(Device<?, ?, ?> renderer) { public void setRenderer(Device<?, ?, ?> renderer) {
if (mSubscriptionCallback != null) if (mSubscriptionCallback != null)
mSubscriptionCallback.end(); mSubscriptionCallback.end();
if (mRenderer != null && renderer != mRenderer) if (mRenderer != null && !renderer.equals(mRenderer))
pause(); pause();
mRenderer = renderer; mRenderer = renderer;