From b818fd3926198baa0002a69a230dabb91473e275 Mon Sep 17 00:00:00 2001 From: Vasilis Liaskovitis Date: Fri, 9 May 2014 00:54:57 +0200 Subject: [PATCH] "new-sample" callback should return GstFlowReturn --- MediaImpl.cpp | 3 ++- MediaImpl.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MediaImpl.cpp b/MediaImpl.cpp index a3bbb7c..ecce5fa 100644 --- a/MediaImpl.cpp +++ b/MediaImpl.cpp @@ -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) : diff --git a/MediaImpl.h b/MediaImpl.h index 263eb77..6975a72 100644 --- a/MediaImpl.h +++ b/MediaImpl.h @@ -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);