aacparse: correctly set ADIF src caps

This commit is contained in:
Mark Nauwelaerts 2012-02-09 22:07:48 +01:00
parent ee2e07d50d
commit 207f520bbd

View file

@ -878,11 +878,10 @@ gst_aac_parse_detect_stream (GstAacParse * aacparse,
gst_base_parse_set_min_frame_size (GST_BASE_PARSE (aacparse), 512);
/* arrange for metadata and get out of the way */
if ((sinkcaps =
gst_pad_get_current_caps (GST_BASE_PARSE_SINK_PAD (aacparse)))) {
gst_aac_parse_set_src_caps (aacparse, sinkcaps);
sinkcaps = gst_pad_get_current_caps (GST_BASE_PARSE_SINK_PAD (aacparse));
gst_aac_parse_set_src_caps (aacparse, sinkcaps);
if (sinkcaps)
gst_caps_unref (sinkcaps);
}
/* not syncable, not easily seekable (unless we push data from start */
gst_base_parse_set_syncable (GST_BASE_PARSE_CAST (aacparse), FALSE);