mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
- fixed pure virtual crash in server
This commit is contained in:
parent
523779f9aa
commit
3aa0128266
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: menu.c,v 1.3 2005/02/08 17:22:35 lordjaxom Exp $
|
||||
* $Id: menu.c,v 1.4 2005/03/12 12:54:19 lordjaxom Exp $
|
||||
*/
|
||||
|
||||
#include <vdr/menuitems.h>
|
||||
@ -250,7 +250,7 @@ class cMenuWhatsOnItem : public cOsdItem {
|
||||
public:
|
||||
const cEvent *event;
|
||||
const cChannel *channel;
|
||||
cMenuWhatsOnItem(const cEvent *Event, cChannel *Channel, bool Now = false);
|
||||
cMenuWhatsOnItem(const cEvent *Event, cChannel *Channel); //, bool Now = false);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -257,6 +257,18 @@ void cStreamdevLiveStreamer::Del(int Count)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void cStreamdevLiveStreamer::Attach(void)
|
||||
{
|
||||
printf("RIGHT ATTACH\n");
|
||||
m_Device->AttachReceiver(m_Receiver);
|
||||
}
|
||||
|
||||
void cStreamdevLiveStreamer::Detach(void)
|
||||
{
|
||||
printf("RIGHT DETACH\n");
|
||||
m_Device->Detach(m_Receiver);
|
||||
}
|
||||
|
||||
std::string cStreamdevLiveStreamer::Report(void)
|
||||
{
|
||||
|
@ -59,8 +59,8 @@ public:
|
||||
virtual uchar *Get(int &Count);
|
||||
virtual void Del(int Count);
|
||||
|
||||
virtual void Attach(void) { m_Device->AttachReceiver(m_Receiver); }
|
||||
virtual void Detach(void) { m_Device->Detach(m_Receiver); }
|
||||
virtual void Attach(void);
|
||||
virtual void Detach(void);
|
||||
|
||||
// Statistical purposes:
|
||||
virtual std::string Report(void);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: streamer.h,v 1.6 2005/02/11 17:02:22 lordjaxom Exp $
|
||||
* $Id: streamer.h,v 1.7 2005/03/12 12:54:19 lordjaxom Exp $
|
||||
*/
|
||||
|
||||
#ifndef VDR_STREAMDEV_STREAMER_H
|
||||
@ -61,8 +61,8 @@ public:
|
||||
virtual uchar *Get(int &Count) { return m_SendBuffer->Get(Count); }
|
||||
virtual void Del(int Count) { m_SendBuffer->Del(Count); }
|
||||
|
||||
virtual void Detach(void) = 0;
|
||||
virtual void Attach(void) = 0;
|
||||
virtual void Detach(void) {}
|
||||
virtual void Attach(void) {}
|
||||
};
|
||||
|
||||
#endif // VDR_STREAMDEV_STREAMER_H
|
||||
|
Loading…
Reference in New Issue
Block a user