From e6249bf957a943920b11abbd9efac1efa18b1d00 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Thu, 2 Dec 2010 08:56:19 +0100 Subject: Snapshot 2007-04-03 --- server/streamer.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'server/streamer.h') diff --git a/server/streamer.h b/server/streamer.h index c27677c..e557d55 100644 --- a/server/streamer.h +++ b/server/streamer.h @@ -1,5 +1,5 @@ /* - * $Id: streamer.h,v 1.7 2005/03/12 12:54:19 lordjaxom Exp $ + * $Id: streamer.h,v 1.8 2007/04/02 10:32:34 schmirl Exp $ */ #ifndef VDR_STREAMDEV_STREAMER_H @@ -29,6 +29,8 @@ protected: public: cStreamdevWriter(cTBSocket *Socket, cStreamdevStreamer *Streamer); virtual ~cStreamdevWriter(); + + bool IsActive(void) const { return m_Active; } }; // --- cStreamdevStreamer ----------------------------------------------------- @@ -52,6 +54,7 @@ public: virtual void Start(cTBSocket *Socket); virtual void Stop(void); + bool Abort(void) const; void Activate(bool On); int Receive(uchar *Data, int Length) { return m_RingBuffer->Put(Data, Length); } @@ -65,5 +68,10 @@ public: virtual void Attach(void) {} }; +inline bool cStreamdevStreamer::Abort(void) const +{ + return m_Active && !m_Writer->IsActive(); +} + #endif // VDR_STREAMDEV_STREAMER_H -- cgit v1.2.3