diff options
Diffstat (limited to 'src/multimedia/gsttools_headers/qgstvideorenderersink_p.h')
-rw-r--r-- | src/multimedia/gsttools_headers/qgstvideorenderersink_p.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/multimedia/gsttools_headers/qgstvideorenderersink_p.h b/src/multimedia/gsttools_headers/qgstvideorenderersink_p.h index 0c5636c2e..48b14108d 100644 --- a/src/multimedia/gsttools_headers/qgstvideorenderersink_p.h +++ b/src/multimedia/gsttools_headers/qgstvideorenderersink_p.h @@ -98,14 +98,10 @@ public: void stop(); bool proposeAllocation(GstQuery *query); - void flush(); - - GstFlowReturn render(GstBuffer *buffer, bool show); + GstFlowReturn render(GstBuffer *buffer); bool event(QEvent *event); - static void handleShowPrerollChange(GObject *o, GParamSpec *p, gpointer d); - private slots: bool handleEvent(QMutexLocker *locker); void updateSupportedFormats(); @@ -126,11 +122,10 @@ private: GstCaps *m_surfaceCaps; GstCaps *m_startCaps; - GstBuffer *m_lastBuffer; + GstBuffer *m_renderBuffer; bool m_notified; bool m_stop; - bool m_render; bool m_flush; }; @@ -156,7 +151,8 @@ private: static gboolean propose_allocation(GstBaseSink *sink, GstQuery *query); - static GstFlowReturn preroll(GstBaseSink *sink, GstBuffer *buffer); + static gboolean stop(GstBaseSink *sink); + static GstFlowReturn render(GstBaseSink *sink, GstBuffer *buffer); private: |