mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +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
|
// -- Store only if channel != last channel and time store delay is large enough
|
||||||
// forceStoreToLastChannels default to false
|
// 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;
|
struct timeval tv;
|
||||||
unsigned long lastTimestamp(0);
|
unsigned long lastTimestamp(0);
|
||||||
@@ -58,7 +58,7 @@ void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceSto
|
|||||||
this->lastChannels.pop_front();
|
this->lastChannels.pop_front();
|
||||||
|
|
||||||
/* push new channel to the head */
|
/* 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);
|
this->lastChannels.push_front(newChannel);
|
||||||
|
|
||||||
|
@@ -32,7 +32,6 @@ class CLastChannel
|
|||||||
private:
|
private:
|
||||||
struct _LastCh
|
struct _LastCh
|
||||||
{
|
{
|
||||||
int channel;
|
|
||||||
t_channel_id channel_id;
|
t_channel_id channel_id;
|
||||||
long int timestamp;
|
long int timestamp;
|
||||||
int channel_mode;
|
int channel_mode;
|
||||||
@@ -47,7 +46,7 @@ class CLastChannel
|
|||||||
public:
|
public:
|
||||||
CLastChannel (void);
|
CLastChannel (void);
|
||||||
void clear (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);
|
t_channel_id getlast (int n);
|
||||||
unsigned int size () const;
|
unsigned int size () const;
|
||||||
void clear_storedelay (void);
|
void clear_storedelay (void);
|
||||||
|
Reference in New Issue
Block a user