From 16f8c75918d309042490ef5c853def735151cd2c Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sun, 27 May 2012 01:31:45 +0200 Subject: [PATCH] Dropped m_UpdatePriority --- client/device.c | 6 +----- client/device.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/client/device.c b/client/device.c index 57f1b5b..87dd46c 100644 --- a/client/device.c +++ b/client/device.c @@ -158,8 +158,6 @@ bool cStreamdevDevice::SetChannelDevice(const cChannel *Channel, LiveView ? "true" : "false"); LOCK_THREAD; - m_UpdatePriority = ClientSocket.SupportsPrio(); - if (LiveView) return false; @@ -180,8 +178,6 @@ bool cStreamdevDevice::SetPid(cPidHandle *Handle, int Type, bool On) { Dprintf("SetPid, Pid=%d, Type=%d, On=%d, used=%d\n", Handle->pid, Type, On, Handle->used); LOCK_THREAD; - m_UpdatePriority = ClientSocket.SupportsPrio(); - bool res = true; if (Handle->pid && (On || !Handle->used)) { res = ClientSocket.SetPid(Handle->pid, On); @@ -298,7 +294,7 @@ bool cStreamdevDevice::ReInit(void) { void cStreamdevDevice::UpdatePriority(bool SwitchingChannels) { if (m_Device) { m_Device->Lock(); - if (m_Device->m_UpdatePriority && ClientSocket.DataSocket(siLive)) { + if (ClientSocket.SupportsPrio() && ClientSocket.DataSocket(siLive)) { int Priority = m_Device->Priority(); // override TRANSFERPRIORITY (-1) with live TV priority from setup if (m_Device == cDevice::ActualDevice() && Priority == TRANSFERPRIORITY) { diff --git a/client/device.h b/client/device.h index ea62c9f..ff9092e 100644 --- a/client/device.h +++ b/client/device.h @@ -22,7 +22,6 @@ private: cStreamdevFilters *m_Filters; int m_Pids; int m_Priority; - bool m_UpdatePriority; static cStreamdevDevice *m_Device; static const cChannel *m_DenyChannel;