From: vijay Date: Wed, 24 May 2017 06:03:05 +0000 (+0530) Subject: aacparse : Fix, Caps were not set while reusing aacparse X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~14^2~3^2~62^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5544a3543ebd0d127c1847a2b4d57ef340b3562f;p=platform%2Fupstream%2Fgstreamer.git aacparse : Fix, Caps were not set while reusing aacparse While reusing aacparse caps were not set.This fix enables aacparse to reuse in same pipeline. https://bugzilla.gnome.org/show_bug.cgi?id=783027 --- diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index cabd961..c9ce304 100644 --- a/gst/audioparsers/gstaacparse.c +++ b/gst/audioparsers/gstaacparse.c @@ -1499,6 +1499,12 @@ gst_aac_parse_start (GstBaseParse * parse) aacparse->sent_codec_tag = FALSE; aacparse->last_parsed_channels = 0; aacparse->last_parsed_sample_rate = 0; + aacparse->object_type = 0; + aacparse->bitrate = 0; + aacparse->header_type = DSPAAC_HEADER_NOT_PARSED; + aacparse->output_header_type = DSPAAC_HEADER_NOT_PARSED; + aacparse->channels = 0; + aacparse->sample_rate = 0; return TRUE; }