diff options
author | Edward Hervey <edward@centricular.com> | 2022-11-12 11:57:18 +0300 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2022-11-12 12:33:50 +0300 |
commit | ba0c95312e5ef3848d6562b7cc10262ad02d6573 (patch) | |
tree | feb2a91f1d331a361ce6956f190689381e4be41b | |
parent | 219c5cf33031bce4839b7d6493326fb566260dbe (diff) |
streams: Reset stream id field on finalize
If debugging is activated, the parent class finalize might attempt to read it
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
-rw-r--r-- | subprojects/gstreamer/gst/gststreams.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subprojects/gstreamer/gst/gststreams.c b/subprojects/gstreamer/gst/gststreams.c index 1a021870ee..a6bf5d901e 100644 --- a/subprojects/gstreamer/gst/gststreams.c +++ b/subprojects/gstreamer/gst/gststreams.c @@ -191,6 +191,7 @@ gst_stream_finalize (GObject * object) (GstMiniObject *) NULL); gst_caps_replace (&stream->priv->caps, NULL); g_free ((gchar *) stream->stream_id); + stream->stream_id = NULL; G_OBJECT_CLASS (parent_class)->finalize (object); } |