summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Shanks <brendan.shanks@teradek.com>2018-03-20 11:49:19 -0700
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2018-03-21 15:59:17 -0400
commit13e6c9b6186305b80e9eb19b3193930133069e72 (patch)
tree822883de99a19d6c422143c1d0f6265da67485ca
parent0d92a123b9b31ad3c97bca94622d0535e6a8c672 (diff)
downloadgstreamer-plugins-bad-13e6c9b6186305b80e9eb19b3193930133069e72.tar.gz
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
-rw-r--r--gst/videoparsers/gsth264parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 10543eafc..6ca6b9e03 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -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;