h264parse: unref/replace force_key_unit_event in gst_h264_parse_reset
authorHaakon Sporsheim (ieei) <haakon.sporsheim@gmail.com>
Tue, 29 Apr 2014 15:06:00 +0000 (15:06 +0000)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 29 Apr 2014 15:17:51 +0000 (12:17 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=729200

gst/videoparsers/gsth264parse.c

index 9105d7f..f88d89d 100644 (file)
@@ -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;