Commit 5180ef94 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

video: only expose methods if necessary

parent b4bc7ab8
...@@ -40,18 +40,18 @@ public: ...@@ -40,18 +40,18 @@ public:
virtual ~SFLThread(); virtual ~SFLThread();
void start(); void start();
protected:
void exit();
void stop(); void stop();
void join(); void join();
bool isRunning(); bool isRunning();
protected: private:
virtual bool setup() { return true; }; virtual bool setup() { return true; };
virtual void process() {}; virtual void process() {};
virtual void cleanup() {}; virtual void cleanup() {};
void exit();
private:
static void* run_(void*); static void* run_(void*);
void mainloop_(); void mainloop_();
pthread_t thread_; pthread_t thread_;
......
...@@ -57,10 +57,10 @@ public: ...@@ -57,10 +57,10 @@ public:
int getWidth() const; int getWidth() const;
int getHeight() const; int getHeight() const;
private:
// threading // threading
void process(); void process();
private:
NON_COPYABLE(VideoMixer); NON_COPYABLE(VideoMixer);
void waitForUpdate(); void waitForUpdate();
......
...@@ -82,7 +82,6 @@ private: ...@@ -82,7 +82,6 @@ private:
void renderFrame(); void renderFrame();
static int readFunction(void *opaque, uint8_t *buf, int buf_size); static int readFunction(void *opaque, uint8_t *buf, int buf_size);
protected:
// threading // threading
bool setup(); bool setup();
void process(); void process();
......
...@@ -52,13 +52,12 @@ public: ...@@ -52,13 +52,12 @@ public:
std::string getSDP() const { return sdp_; } std::string getSDP() const { return sdp_; }
void forceKeyFrame(); void forceKeyFrame();
protected: private:
// threading // threading
bool setup(); bool setup();
void process(); void process();
void cleanup(); void cleanup();
private:
NON_COPYABLE(VideoSendThread); NON_COPYABLE(VideoSendThread);
static int interruptCb(void *ctx); static int interruptCb(void *ctx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment