mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
audioenc: fix compilation
This commit is contained in:
parent
f71511edd2
commit
c290b8044a
1 changed files with 9 additions and 3 deletions
|
@ -496,15 +496,21 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
|
||||||
|
|
||||||
if (G_UNLIKELY (enc->priv->tags)) {
|
if (G_UNLIKELY (enc->priv->tags)) {
|
||||||
GstTagList *tags;
|
GstTagList *tags;
|
||||||
|
#if 0
|
||||||
|
GstCaps *caps;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* add codec info to pending tags */
|
/* add codec info to pending tags */
|
||||||
tags = enc->priv->tags;
|
tags = enc->priv->tags;
|
||||||
/* no more pending */
|
/* no more pending */
|
||||||
enc->priv->tags = NULL;
|
enc->priv->tags = NULL;
|
||||||
gst_pb_utils_add_codec_description_to_tag_list (tags, GST_TAG_CODEC,
|
#if 0
|
||||||
GST_PAD_CAPS (enc->srcpad));
|
caps = gst_pad_get_current_caps (enc->srcpad);
|
||||||
|
gst_pb_utils_add_codec_description_to_tag_list (tags, GST_TAG_CODEC, caps);
|
||||||
gst_pb_utils_add_codec_description_to_tag_list (tags, GST_TAG_AUDIO_CODEC,
|
gst_pb_utils_add_codec_description_to_tag_list (tags, GST_TAG_AUDIO_CODEC,
|
||||||
GST_PAD_CAPS (enc->srcpad));
|
caps);
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (enc, "sending tags %" GST_PTR_FORMAT, tags);
|
GST_DEBUG_OBJECT (enc, "sending tags %" GST_PTR_FORMAT, tags);
|
||||||
gst_element_found_tags_for_pad (GST_ELEMENT (enc), enc->srcpad, tags);
|
gst_element_found_tags_for_pad (GST_ELEMENT (enc), enc->srcpad, tags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue