From: Wim Taymans Date: Mon, 26 Sep 2011 19:11:14 +0000 (+0200) Subject: audioenc: fix compilation X-Git-Tag: RELEASE-0.11.1~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c290b8044a981e23df5c6e8344460b5fdfba3cc7;p=platform%2Fupstream%2Fgst-plugins-base.git audioenc: fix compilation --- diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index 997b069..b3f2ea5 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -496,15 +496,21 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf, if (G_UNLIKELY (enc->priv->tags)) { GstTagList *tags; +#if 0 + GstCaps *caps; +#endif /* add codec info to pending tags */ tags = enc->priv->tags; /* no more pending */ enc->priv->tags = NULL; - gst_pb_utils_add_codec_description_to_tag_list (tags, GST_TAG_CODEC, - GST_PAD_CAPS (enc->srcpad)); +#if 0 + 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_PAD_CAPS (enc->srcpad)); + caps); +#endif + GST_DEBUG_OBJECT (enc, "sending tags %" GST_PTR_FORMAT, tags); gst_element_found_tags_for_pad (GST_ELEMENT (enc), enc->srcpad, tags); }