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:
virtual ~SFLThread();
void start();
protected:
void exit();
void stop();
void join();
bool isRunning();
protected:
private:
virtual bool setup() { return true; };
virtual void process() {};
virtual void cleanup() {};
void exit();
private:
static void* run_(void*);
void mainloop_();
pthread_t thread_;
......
......@@ -57,10 +57,10 @@ public:
int getWidth() const;
int getHeight() const;
private:
// threading
void process();
private:
NON_COPYABLE(VideoMixer);
void waitForUpdate();
......
......@@ -82,7 +82,6 @@ private:
void renderFrame();
static int readFunction(void *opaque, uint8_t *buf, int buf_size);
protected:
// threading
bool setup();
void process();
......
......@@ -52,13 +52,12 @@ public:
std::string getSDP() const { return sdp_; }
void forceKeyFrame();
protected:
private:
// threading
bool setup();
void process();
void cleanup();
private:
NON_COPYABLE(VideoSendThread);
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