Commit a43bbf7a authored by zhujiashun's avatar zhujiashun

Remove unnecessary code in rtmp

parent efba716e
...@@ -864,22 +864,6 @@ struct RtmpRetryingClientStreamOptions : public RtmpClientStreamOptions { ...@@ -864,22 +864,6 @@ struct RtmpRetryingClientStreamOptions : public RtmpClientStreamOptions {
RtmpRetryingClientStreamOptions(); RtmpRetryingClientStreamOptions();
}; };
// The callback to run after getting a RtmpClient
class OnGetRtmpClient {
public:
virtual ~OnGetRtmpClient() {}
virtual void Run(const RtmpClient*) = 0;
};
// Base class for choosing a RtmpClient for RtmpRetryingClientStream dynamically.
class RtmpClientSelector {
public:
virtual ~RtmpClientSelector() {}
// Start getting a RtmpClient and call done->Run(client) when the client
// is got and ready.
virtual void StartGettingRtmpClient(OnGetRtmpClient* done) = 0;
};
// Base class for handling the messages received by a SubStream // Base class for handling the messages received by a SubStream
class RtmpMessageHandler { class RtmpMessageHandler {
public: public:
......
...@@ -375,7 +375,6 @@ void RtmpSubStream::OnStop() { ...@@ -375,7 +375,6 @@ void RtmpSubStream::OnStop() {
class RtmpSubStreamCreator : public brpc::SubStreamCreator { class RtmpSubStreamCreator : public brpc::SubStreamCreator {
public: public:
RtmpSubStreamCreator(brpc::RtmpClientSelector* client_selector);
RtmpSubStreamCreator(const brpc::RtmpClient* client); RtmpSubStreamCreator(const brpc::RtmpClient* client);
~RtmpSubStreamCreator(); ~RtmpSubStreamCreator();
......
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