mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
"new-sample" callback should return GstFlowReturn
This commit is contained in:
committed by
Alexandre Quessy
parent
f4ecddd664
commit
b818fd3926
+2
-1
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user