From 831737124ffed753cc5470f21abe382ef6f62685 Mon Sep 17 00:00:00 2001 From: Maksym Khomenko Date: Fri, 7 Jul 2023 16:01:33 +0300 Subject: [PATCH] appsink: add missing make_writable call Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c index 912a3a9eb4..29c3ae27dd 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c @@ -1069,6 +1069,7 @@ restart: if (G_UNLIKELY (!priv->last_caps && gst_pad_has_current_caps (GST_BASE_SINK_PAD (psink)))) { priv->last_caps = gst_pad_get_current_caps (GST_BASE_SINK_PAD (psink)); + priv->sample = gst_sample_make_writable (priv->sample); gst_sample_set_caps (priv->sample, priv->last_caps); GST_DEBUG_OBJECT (appsink, "activating pad caps %" GST_PTR_FORMAT, priv->last_caps);