mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
appsink: add missing make_writable call
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4991>
This commit is contained in:
parent
654609ef15
commit
831737124f
1 changed files with 1 additions and 0 deletions
|
@ -1069,6 +1069,7 @@ restart:
|
||||||
if (G_UNLIKELY (!priv->last_caps &&
|
if (G_UNLIKELY (!priv->last_caps &&
|
||||||
gst_pad_has_current_caps (GST_BASE_SINK_PAD (psink)))) {
|
gst_pad_has_current_caps (GST_BASE_SINK_PAD (psink)))) {
|
||||||
priv->last_caps = gst_pad_get_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_sample_set_caps (priv->sample, priv->last_caps);
|
||||||
GST_DEBUG_OBJECT (appsink, "activating pad caps %" GST_PTR_FORMAT,
|
GST_DEBUG_OBJECT (appsink, "activating pad caps %" GST_PTR_FORMAT,
|
||||||
priv->last_caps);
|
priv->last_caps);
|
||||||
|
|
Loading…
Reference in a new issue