gst_aac_parse_parse_adts_header (aacparse, data, &rate, &channels,
&aacparse->object_type, &aacparse->mpegversion);
- gst_base_parse_set_frame_props (GST_BASE_PARSE (aacparse),
- rate, 1024, 2, 2);
+ gst_base_parse_set_frame_rate (GST_BASE_PARSE (aacparse), rate, 1024, 2, 2);
GST_DEBUG ("ADTS: samplerate %d, channels %d, objtype %d, version %d",
rate, channels, aacparse->object_type, aacparse->mpegversion);
ret = GST_FLOW_NOT_LINKED;
}
- gst_base_parse_set_frame_props (GST_BASE_PARSE (aacparse),
+ gst_base_parse_set_frame_rate (GST_BASE_PARSE (aacparse),
aacparse->sample_rate, 1024, 2, 2);
}
ac3parse->channels = chans;
ac3parse->eac = eac;
- gst_base_parse_set_frame_props (parse, rate, 256 * blocks, 2, 2);
+ gst_base_parse_set_frame_rate (parse, rate, 256 * blocks, 2, 2);
}
return GST_FLOW_OK;
}
amrparse->need_header = FALSE;
- gst_base_parse_set_frame_props (GST_BASE_PARSE (amrparse), 50, 1, 2, 2);
+ gst_base_parse_set_frame_rate (GST_BASE_PARSE (amrparse), 50, 1, 2, 2);
gst_amr_parse_set_src_caps (amrparse);
return TRUE;
}
if (dsize >= AMR_MIME_HEADER_SIZE &&
gst_amr_parse_parse_header (amrparse, data, skipsize)) {
amrparse->need_header = FALSE;
- gst_base_parse_set_frame_props (GST_BASE_PARSE (amrparse), 50, 1, 2, 2);
+ gst_base_parse_set_frame_rate (GST_BASE_PARSE (amrparse), 50, 1, 2, 2);
} else {
GST_WARNING ("media doesn't look like a AMR format");
}
dcaparse->block_size = block_size;
dcaparse->frame_size = size;
- gst_base_parse_set_frame_props (parse, rate, block_size, 0, 0);
+ gst_base_parse_set_frame_rate (parse, rate, block_size, 0, 0);
}
return GST_FLOW_OK;
* Some mp3 streams have an offset in the timestamps, for which we have to
* push the frame *after* the end position in order for the decoder to be
* able to decode everything up until the segment.stop position. */
- gst_base_parse_set_frame_props (parse, mp3parse->rate, mp3parse->spf,
+ gst_base_parse_set_frame_rate (parse, mp3parse->rate, mp3parse->spf,
(version == 1) ? 10 : 30, 2);
}