"new-sample" callback should return GstFlowReturn

This commit is contained in:
Vasilis Liaskovitis
2014-05-09 00:54:57 +02:00
committed by Alexandre Quessy
parent f4ecddd664
commit b818fd3926
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -172,9 +172,10 @@ bool MediaImpl::_eos() const
//}
void MediaImpl::gstNewSampleCallback(GstElement*, int *newBufferCounter)
GstFlowReturn MediaImpl::gstNewSampleCallback(GstElement*, int *newBufferCounter)
{
(*newBufferCounter)++;
return GST_FLOW_OK;
}
MediaImpl::MediaImpl(const QString uri) :
+2 -1
View File
@@ -105,7 +105,8 @@ public:
// };
// GStreamer callback that simply sets the #newSample# flag to point to TRUE.
static void gstNewSampleCallback(GstElement *sink, int *newBufferCounter);
static GstFlowReturn gstNewSampleCallback(GstElement*, int *newBufferCounter);
static GstFlowReturn gstNewPreRollCallback (GstAppSink * appsink, gpointer user_data);
// static void gstNewAudioBufferCallback(GstElement *sink, GstNewAudioBufferHandlerData *data);