BugFix stop stream without deleting it

This commit is contained in:
brunoherbelin
2020-11-04 22:23:37 +01:00
parent 2124dfc718
commit c2531cf035
2 changed files with 11 additions and 6 deletions

View File

@@ -46,6 +46,7 @@ public:
inline bool enabled() const { return enabled_; }
void setSession(Session *se);
void removeStreams(const std::string &clientname);
void removeStream(const std::string &sender, int port);
bool busy();
std::vector<std::string> listStreams();
@@ -53,7 +54,6 @@ public:
protected:
void addStream(const std::string &sender, int reply_to, const std::string &clientname);
void refuseStream(const std::string &sender, int reply_to);
void removeStream(const std::string &sender, int port);
private:
@@ -73,6 +73,8 @@ class VideoStreamer : public FrameGrabber
{
friend class Streaming;
void stop() override;
// Frame buffer information
FrameBuffer *frame_buffer_;
uint width_;
@@ -101,7 +103,6 @@ public:
~VideoStreamer();
void addFrame(FrameBuffer *frame_buffer, float dt) override;
void stop() override;
std::string info() override;
double duration() override;
bool busy() override;