mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
kmssink: keep last rendered buffer in memory
https://bugzilla.gnome.org/show_bug.cgi?id=761059
This commit is contained in:
parent
b29f7d048c
commit
7d06cf3297
2 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,7 @@ gst_kms_sink_stop (GstBaseSink * bsink)
|
|||
|
||||
self = GST_KMS_SINK (bsink);
|
||||
|
||||
gst_buffer_replace (&self->last_buffer, NULL);
|
||||
gst_caps_replace (&self->allowed_caps, NULL);
|
||||
gst_object_replace ((GstObject **) & self->pool, NULL);
|
||||
gst_object_replace ((GstObject **) & self->allocator, NULL);
|
||||
|
@ -1099,6 +1100,8 @@ gst_kms_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
|
|||
if (!gst_kms_sink_sync (self))
|
||||
goto bail;
|
||||
|
||||
gst_buffer_replace (&self->last_buffer, buffer);
|
||||
|
||||
res = GST_FLOW_OK;
|
||||
|
||||
bail:
|
||||
|
|
|
@ -65,6 +65,7 @@ struct _GstKMSSink {
|
|||
GstCaps *allowed_caps;
|
||||
GstBufferPool *pool;
|
||||
GstAllocator *allocator;
|
||||
GstBuffer *last_buffer;
|
||||
|
||||
gchar *devname;
|
||||
|
||||
|
|
Loading…
Reference in a new issue