mpegaudioparse: fix compiler warning

This commit is contained in:
Alessandro Decina 2012-02-26 20:30:24 +01:00
parent 676b371bdb
commit 6e96f4c201

View file

@ -146,8 +146,7 @@ gst_mpeg_audio_parse_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class, "MPEG1 Audio Parser",
@ -573,7 +572,7 @@ gst_mp3parse_find_freerate (GstMpegAudioParse * mp3parse, GstBuffer * buf,
}
if (valid) {
GST_LOG_OBJECT (mp3parse, "calculated rate %d", rate * 1000);
GST_LOG_OBJECT (mp3parse, "calculated rate %lu", rate * 1000);
if (rate < 8 || (layer == 3 && rate > 640)) {
GST_DEBUG_OBJECT (mp3parse, "rate invalid");
if (rate < 8) {