From 8d637854254255860ac40dbe5a96328de99f6f7a Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Wed, 14 Mar 2012 11:52:43 +1000 Subject: gst video surface sink: start surface with correct handle type The handle type should match one from the currently used buffer pool. Change-Id: I33f7856a742299ce0640f331898c3cbe5cfbdf97 Reviewed-by: Jonas Rabbe --- src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h') diff --git a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h index 143f65d22..6ee6907ab 100644 --- a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h +++ b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h @@ -134,7 +134,9 @@ public: GstVideoSink parent; static QVideoSurfaceGstSink *createSink(QAbstractVideoSurface *surface); - static QVideoSurfaceFormat formatForCaps(GstCaps *caps, int *bytesPerLine = 0); + static QVideoSurfaceFormat formatForCaps(GstCaps *caps, + int *bytesPerLine = 0, + QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle); static void setFrameTimeStamps(QVideoFrame *frame, GstBuffer *buffer); static void handleShowPrerollChange(GObject *o, GParamSpec *p, gpointer d); -- cgit v1.2.3