baseaudiodecoder, baseaudioencoder: fix some compiler warnings

Leaving the GST_USE_UNSTABLE_API guards in until some of the
ported decoders have been updated and it's clear that I didn't
mess up anywhere porting things to the new audio API.
This commit is contained in:
Tim-Philipp Müller 2011-08-27 12:47:40 +01:00
parent 52ecb383d7
commit 90e3d25891
2 changed files with 2 additions and 6 deletions

View file

@ -148,6 +148,7 @@
#include "config.h"
#endif
#define GST_USE_UNSTABLE_API
#include "gstbaseaudiodecoder.h"
#include <gst/pbutils/descriptions.h>
@ -1490,11 +1491,9 @@ static gboolean
gst_base_audio_decoder_src_event (GstPad * pad, GstEvent * event)
{
GstBaseAudioDecoder *dec;
GstBaseAudioDecoderClass *klass;
gboolean res = FALSE;
dec = GST_BASE_AUDIO_DECODER (gst_pad_get_parent (pad));
klass = GST_BASE_AUDIO_DECODER_GET_CLASS (dec);
GST_DEBUG_OBJECT (dec, "received event %d, %s", GST_EVENT_TYPE (event),
GST_EVENT_TYPE_NAME (event));
@ -1905,11 +1904,9 @@ gst_base_audio_decoder_change_state (GstElement * element,
GstStateChange transition)
{
GstBaseAudioDecoder *codec;
GstBaseAudioDecoderClass *codec_class;
GstStateChangeReturn ret;
codec = GST_BASE_AUDIO_DECODER (element);
codec_class = GST_BASE_AUDIO_DECODER_GET_CLASS (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:

View file

@ -150,6 +150,7 @@
# include "config.h"
#endif
#define GST_USE_UNSTABLE_API
#include "gstbaseaudioencoder.h"
#include <gst/base/gstadapter.h>
#include <gst/audio/audio.h>
@ -771,7 +772,6 @@ gst_base_audio_encoder_set_base_gp (GstBaseAudioEncoder * enc)
static GstFlowReturn
gst_base_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
{
GstBaseAudioEncoderClass *bclass;
GstBaseAudioEncoder *enc;
GstBaseAudioEncoderPrivate *priv;
GstBaseAudioEncoderContext *ctx;
@ -779,7 +779,6 @@ gst_base_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
gboolean discont;
enc = GST_BASE_AUDIO_ENCODER (GST_OBJECT_PARENT (pad));
bclass = GST_BASE_AUDIO_ENCODER_GET_CLASS (enc);
priv = enc->priv;
ctx = &enc->priv->ctx;