diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 56ace3d8c5..d696e8daa7 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -199,7 +199,7 @@ gst_h265_parse_reset (GstH265Parse * h265parse) h265parse->sent_codec_tag = FALSE; h265parse->pending_key_unit_ts = GST_CLOCK_TIME_NONE; - h265parse->force_key_unit_event = NULL; + gst_event_replace (&h265parse->force_key_unit_event, NULL); h265parse->discont = FALSE;