baseaudioencoder: minor fix and cleanup

This commit is contained in:
Mark Nauwelaerts 2011-03-09 12:17:18 +01:00 committed by Tim-Philipp Müller
parent 90d99f23c6
commit 51acb02342
2 changed files with 1 additions and 11 deletions

View file

@ -553,6 +553,7 @@ gst_base_audio_encoder_finish_frame (GstBaseAudioEncoder * enc, GstBuffer * buf,
if (av) {
GST_LOG_OBJECT (enc, "collecting all %d bytes for output", av);
buf = gst_adapter_take_buffer (priv->adapter_out, av);
buf = gst_buffer_make_metadata_writable (buf);
/* decorate */
gst_buffer_set_caps (buf, GST_PAD_CAPS (enc->srcpad));

View file

@ -79,17 +79,6 @@ G_BEGIN_DECLS
*/
#define GST_BASE_AUDIO_ENCODER_SEGMENT(obj) (GST_BASE_AUDIO_ENCODER_CAST (obj)->segment)
/**
* GST_BASE_AUDIO_ENCODER_FLOW_DROPPED:
*
* A #GstFlowReturn that can be returned from parse_frame to
* indicate that no output buffer was generated, or from pre_push_buffer to
* to forego pushing buffer.
*
* Since: 0.10.x
*/
#define GST_BASE_AUDIO_ENCODER_FLOW_DROPPED GST_FLOW_CUSTOM_SUCCESS
typedef struct _GstBaseAudioEncoder GstBaseAudioEncoder;
typedef struct _GstBaseAudioEncoderClass GstBaseAudioEncoderClass;