mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
system/lastchannel.cpp: cleanup unused channelnr
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9c47e9e5f3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-10 (Fri, 10 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -39,7 +39,7 @@ void CLastChannel::clear (void)
|
||||
// -- Store only if channel != last channel and time store delay is large enough
|
||||
// forceStoreToLastChannels default to false
|
||||
|
||||
void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceStoreToLastChannels */)
|
||||
void CLastChannel::store (t_channel_id channel_id)
|
||||
{
|
||||
struct timeval tv;
|
||||
unsigned long lastTimestamp(0);
|
||||
@@ -58,7 +58,7 @@ void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceSto
|
||||
this->lastChannels.pop_front();
|
||||
|
||||
/* push new channel to the head */
|
||||
_LastCh newChannel = {channel, channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()};
|
||||
_LastCh newChannel = {/*channel,*/ channel_id, tv.tv_sec, CNeutrinoApp::getInstance()->GetChannelMode()};
|
||||
|
||||
this->lastChannels.push_front(newChannel);
|
||||
|
||||
|
@@ -32,7 +32,6 @@ class CLastChannel
|
||||
private:
|
||||
struct _LastCh
|
||||
{
|
||||
int channel;
|
||||
t_channel_id channel_id;
|
||||
long int timestamp;
|
||||
int channel_mode;
|
||||
@@ -47,7 +46,7 @@ class CLastChannel
|
||||
public:
|
||||
CLastChannel (void);
|
||||
void clear (void);
|
||||
void store (int channelnr, t_channel_id channel_id, bool forceStoreToLastChannels = false);
|
||||
void store (t_channel_id channel_id);
|
||||
t_channel_id getlast (int n);
|
||||
unsigned int size () const;
|
||||
void clear_storedelay (void);
|
||||
|
Reference in New Issue
Block a user