Commit a187cafe authored by d.basulto's avatar d.basulto

change the way that the bytes to add is calculated

parent 262b856b
This diff is collapsed.
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#define DST_URI_SIZE 80 #define DST_URI_SIZE 80
#define RECONNECTION_DELAY 1 #define RECONNECTION_DELAY 1
#define STREAM_ENOUGH_DATA_ERROR 4
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
/** Class declaration */ /** Class declaration */
...@@ -52,8 +54,13 @@ class StreamRecorder ...@@ -52,8 +54,13 @@ class StreamRecorder
long int timestamp = 0; long int timestamp = 0;
long int oldTmpTimestamp = 0; long int oldTmpTimestamp = 0;
long int newTmpTimestamp = 0; long int newTmpTimestamp = 0;
long int bytesPerSecond = 0;
bool isDisconnected = false;
bool isValidDisconnectedEvent = false;
bool isConnectionLost;
//char* sourceName; //char* sourceName;
//GstElement* audioResample; //GstElement* audioResample;
...@@ -82,7 +89,7 @@ class StreamRecorder ...@@ -82,7 +89,7 @@ class StreamRecorder
static int filter_handoff_callback(GstElement *filter, GstBuffer* buffer, void* user_data); static int filter_handoff_callback(GstElement *filter, GstBuffer* buffer, void* user_data);
/** Save audio*/ /** Save audio*/
static void saveBuffer(void *user_data); void saveBuffer();
/** Restart the pipeline */ /** Restart the pipeline */
static gboolean reconnectURIStream(void* data); static gboolean reconnectURIStream(void* data);
......
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