From: Vincent Penquerc'h Date: Mon, 21 Nov 2011 11:28:10 +0000 (+0000) Subject: opusdec: light cleanup X-Git-Tag: 1.10.4~478^2~116^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de87d061fcde9d59a3acc0f00c73e41a124a63e2;p=platform%2Fupstream%2Fgst-plugins-base.git opusdec: light cleanup --- diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 624ac81..c924e80 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -248,8 +248,8 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buf) opus_packet_get_samples_per_frame (data, dec->sample_rate) * opus_packet_get_nb_frames (data, size); packet_size = samples * dec->n_channels * 2; - GST_DEBUG ("bandwidth %d", opus_packet_get_bandwidth (data)); - GST_DEBUG ("samples %d", samples); + GST_DEBUG_OBJECT (dec, "bandwidth %d", opus_packet_get_bandwidth (data)); + GST_DEBUG_OBJECT (dec, "samples %d", samples); res = gst_pad_alloc_buffer_and_set_caps (GST_AUDIO_DECODER_SRC_PAD (dec), GST_BUFFER_OFFSET_NONE, packet_size, @@ -377,7 +377,7 @@ gst_opus_dec_handle_frame (GstAudioDecoder * adec, GstBuffer * buf) } } else { /* Otherwise fall back to packet counting and assume that the - * first two packets are the headers. */ + * first two packets might be the headers, checking magic. */ switch (dec->packetno) { case 0: if (gst_opus_dec_is_header (buf, "OpusHead", 8)) {