Commit c9ad4f92 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

mario

parent 967fcb8e
...@@ -46,9 +46,9 @@ class StreamRecorder ...@@ -46,9 +46,9 @@ class StreamRecorder
GstElement* mainPipeline; GstElement* mainPipeline;
//GstElement* tempBin; //GstElement* tempBin;
int createMainPipeline(); int createMainPipeline();
int connect(const char *uri); int connect(const char *uri);
int disconnect(); int disconnect();
// callbacks // callbacks
static void srcNewPad_callback(GstElement *element, GstPad *pad, void *data); static void srcNewPad_callback(GstElement *element, GstPad *pad, void *data);
...@@ -57,17 +57,16 @@ class StreamRecorder ...@@ -57,17 +57,16 @@ class StreamRecorder
// add data to buffer // add data to buffer
int addToBuffer(unsigned char* data, int length); int addToBuffer(unsigned char* data, int length);
int compressBuffer(); int compressBuffer();
// Save information when connection fails // Save information when connection fails
static void savePartialBuffer(void *user_data); static void savePartialBuffer(void *user_data);
// Restart the pipeline // Restart the pipeline
static gboolean reconnectURIStream(void *data); static gboolean reconnectURIStream(void *data);
public: public:
StreamRecorder(const char* source, int time);
StreamRecorder(const char* source, int time);
}; };
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#endif #endif
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