baseparse: don't reset the disable-passthrough property value
authorMatthew Waters <matthew@centricular.com>
Wed, 20 Mar 2019 06:43:02 +0000 (17:43 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 20 Mar 2019 06:44:30 +0000 (17:44 +1100)
Resetting as a result of _reset() on PAUSED->READY is unexpected.

libs/gst/base/gstbaseparse.c

index 53baa1e..ce68956 100644 (file)
@@ -642,6 +642,7 @@ gst_base_parse_init (GstBaseParse * parse, GstBaseParseClass * bclass)
   parse->priv->upstream_tags = NULL;
   parse->priv->parser_tags = NULL;
   parse->priv->parser_tags_merge_mode = GST_TAG_MERGE_APPEND;
+  parse->priv->disable_passthrough = DEFAULT_DISABLE_PASSTHROUGH;
 }
 
 static void
@@ -833,7 +834,6 @@ gst_base_parse_reset (GstBaseParse * parse)
   parse->priv->next_pts = GST_CLOCK_TIME_NONE;
   parse->priv->next_dts = 0;
   parse->priv->syncable = TRUE;
-  parse->priv->disable_passthrough = DEFAULT_DISABLE_PASSTHROUGH;
   parse->priv->passthrough = FALSE;
   parse->priv->pts_interpolate = TRUE;
   parse->priv->infer_ts = TRUE;