mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
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:
parent
52ecb383d7
commit
90e3d25891
2 changed files with 2 additions and 6 deletions
|
@ -148,6 +148,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GST_USE_UNSTABLE_API
|
||||||
#include "gstbaseaudiodecoder.h"
|
#include "gstbaseaudiodecoder.h"
|
||||||
#include <gst/pbutils/descriptions.h>
|
#include <gst/pbutils/descriptions.h>
|
||||||
|
|
||||||
|
@ -1490,11 +1491,9 @@ static gboolean
|
||||||
gst_base_audio_decoder_src_event (GstPad * pad, GstEvent * event)
|
gst_base_audio_decoder_src_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstBaseAudioDecoder *dec;
|
GstBaseAudioDecoder *dec;
|
||||||
GstBaseAudioDecoderClass *klass;
|
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
|
|
||||||
dec = GST_BASE_AUDIO_DECODER (gst_pad_get_parent (pad));
|
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_DEBUG_OBJECT (dec, "received event %d, %s", GST_EVENT_TYPE (event),
|
||||||
GST_EVENT_TYPE_NAME (event));
|
GST_EVENT_TYPE_NAME (event));
|
||||||
|
@ -1905,11 +1904,9 @@ gst_base_audio_decoder_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
{
|
{
|
||||||
GstBaseAudioDecoder *codec;
|
GstBaseAudioDecoder *codec;
|
||||||
GstBaseAudioDecoderClass *codec_class;
|
|
||||||
GstStateChangeReturn ret;
|
GstStateChangeReturn ret;
|
||||||
|
|
||||||
codec = GST_BASE_AUDIO_DECODER (element);
|
codec = GST_BASE_AUDIO_DECODER (element);
|
||||||
codec_class = GST_BASE_AUDIO_DECODER_GET_CLASS (element);
|
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||||
|
|
|
@ -150,6 +150,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GST_USE_UNSTABLE_API
|
||||||
#include "gstbaseaudioencoder.h"
|
#include "gstbaseaudioencoder.h"
|
||||||
#include <gst/base/gstadapter.h>
|
#include <gst/base/gstadapter.h>
|
||||||
#include <gst/audio/audio.h>
|
#include <gst/audio/audio.h>
|
||||||
|
@ -771,7 +772,6 @@ gst_base_audio_encoder_set_base_gp (GstBaseAudioEncoder * enc)
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_base_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
|
gst_base_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
GstBaseAudioEncoderClass *bclass;
|
|
||||||
GstBaseAudioEncoder *enc;
|
GstBaseAudioEncoder *enc;
|
||||||
GstBaseAudioEncoderPrivate *priv;
|
GstBaseAudioEncoderPrivate *priv;
|
||||||
GstBaseAudioEncoderContext *ctx;
|
GstBaseAudioEncoderContext *ctx;
|
||||||
|
@ -779,7 +779,6 @@ gst_base_audio_encoder_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
gboolean discont;
|
gboolean discont;
|
||||||
|
|
||||||
enc = GST_BASE_AUDIO_ENCODER (GST_OBJECT_PARENT (pad));
|
enc = GST_BASE_AUDIO_ENCODER (GST_OBJECT_PARENT (pad));
|
||||||
bclass = GST_BASE_AUDIO_ENCODER_GET_CLASS (enc);
|
|
||||||
|
|
||||||
priv = enc->priv;
|
priv = enc->priv;
|
||||||
ctx = &enc->priv->ctx;
|
ctx = &enc->priv->ctx;
|
||||||
|
|
Loading…
Reference in a new issue