mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
baseaudioencoder: minor fix and cleanup
This commit is contained in:
parent
90d99f23c6
commit
51acb02342
2 changed files with 1 additions and 11 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue