h264parse: reset internal 'state' variable properly

Reset the internal 'state' variable when the parser is started, fixes
errors when parser is being re-used.

https://bugzilla.gnome.org/show_bug.cgi?id=794537
This commit is contained in:
Brendan Shanks 2018-03-20 11:49:19 -07:00 committed by Sebastian Dröge
parent 1b3b3677cc
commit 8e3827b7be

View file

@ -267,6 +267,7 @@ gst_h264_parse_start (GstBaseParse * parse)
h264parse->nalparser = gst_h264_nal_parser_new ();
h264parse->state = 0;
h264parse->dts = GST_CLOCK_TIME_NONE;
h264parse->ts_trn_nb = GST_CLOCK_TIME_NONE;
h264parse->sei_pic_struct_pres_flag = FALSE;