Commit 967fcb8e authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

mario

parent becfa065
...@@ -386,14 +386,9 @@ int StreamRecorder::addToBuffer(unsigned char* data, int length) { ...@@ -386,14 +386,9 @@ int StreamRecorder::addToBuffer(unsigned char* data, int length) {
*/ */
int StreamRecorder::filter_handoff_callback(GstElement* filter, GstBuffer* buffer, void* user_data) int StreamRecorder::filter_handoff_callback(GstElement* filter, GstBuffer* buffer, void* user_data)
{ {
cout << "LLEGO INFO" << endl;
GstMapInfo info; GstMapInfo info;
if(!gst_buffer_map (buffer, &info, GST_MAP_READ)) if(!gst_buffer_map (buffer, &info, GST_MAP_READ))
{
cout << "ERROR: MAPPING IS NOT VALID" << endl; cout << "ERROR: MAPPING IS NOT VALID" << endl;
}
//GST_BUFFER_DATA is for gst v0.1 //GST_BUFFER_DATA is for gst v0.1
// ((StreamRecorder*)user_data)->addToBuffer((unsigned char*)GST_BUFFER_DATA (buffer)); // ((StreamRecorder*)user_data)->addToBuffer((unsigned char*)GST_BUFFER_DATA (buffer));
......
...@@ -26,9 +26,9 @@ class StreamRecorder ...@@ -26,9 +26,9 @@ class StreamRecorder
private: private:
unsigned int nBytes; unsigned int nBytes;
unsigned int bufferSize; unsigned int bufferSize;
unsigned char* audioBuffer; unsigned char* audioBuffer;
unsigned char* audioBufferPosition; unsigned char* audioBufferPosition;
int recordTime; int recordTime;
bool isConnectionLost; bool isConnectionLost;
......
No preview for this file type
No preview for this file type
No preview for this file type
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