diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 9105d7f5a0..f88d89dfc2 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -209,7 +209,7 @@ gst_h264_parse_reset (GstH264Parse * h264parse) h264parse->sent_codec_tag = FALSE; h264parse->pending_key_unit_ts = GST_CLOCK_TIME_NONE; - h264parse->force_key_unit_event = NULL; + gst_event_replace (&h264parse->force_key_unit_event, NULL); h264parse->discont = FALSE;