audioparsers: update for set_frame_props -> set_frame_rate API change

This commit is contained in:
Tim-Philipp Müller 2011-04-08 15:59:58 +01:00
parent 6be6fe5db8
commit ad0e4442e9
5 changed files with 7 additions and 8 deletions

View file

@ -456,8 +456,7 @@ gst_aac_parse_detect_stream (GstAacParse * aacparse,
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);
@ -674,7 +673,7 @@ gst_aac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
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);
}

View file

@ -492,7 +492,7 @@ gst_ac3_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
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;

View file

@ -214,7 +214,7 @@ gst_amr_parse_sink_setcaps (GstBaseParse * parse, GstCaps * caps)
}
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;
}
@ -285,7 +285,7 @@ gst_amr_parse_check_valid_frame (GstBaseParse * parse,
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");
}

View file

@ -436,7 +436,7 @@ gst_dca_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
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;

View file

@ -1001,7 +1001,7 @@ gst_mpeg_audio_parse_parse_frame (GstBaseParse * parse,
* 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);
}