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
This commit is contained in:
vijay 2017-05-24 11:33:05 +05:30 committed by Edward Hervey
parent f13f3584ac
commit 810c0bb084

View file

@ -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;
}