From 9cd9f00799b1621c7c4d7be56fa1662a78460e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 30 Mar 2012 12:57:02 +0200 Subject: [PATCH] audioencoder: Add gst_audio_encoder_set_headers() to the docs --- docs/libs/gst-plugins-base-libs-sections.txt | 1 + gst-libs/gst/audio/gstaudioencoder.c | 7 +++++++ win32/common/libgstaudio.def | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index a0bd922f22..790c220d78 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -241,6 +241,7 @@ gst_audio_encoder_set_frame_samples_min gst_audio_encoder_set_frame_samples_max gst_audio_encoder_set_hard_min gst_audio_encoder_set_hard_resync +gst_audio_encoder_set_headers gst_audio_encoder_set_latency gst_audio_encoder_set_lookahead gst_audio_encoder_set_mark_granule diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index ff70f63064..94f523bb3b 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -2081,6 +2081,13 @@ gst_audio_encoder_get_latency (GstAudioEncoder * enc, GST_OBJECT_UNLOCK (enc); } +/** + * gst_audio_encoder_set_headers: + * @encoder: a #GstAudioEncoder + * @headers: (transfer full): a list of #GstBuffer containing the codec header + * + * Set the codec headers to be sent downstream whenever requested. + */ void gst_audio_encoder_set_headers (GstAudioEncoder * enc, GList * headers) { diff --git a/win32/common/libgstaudio.def b/win32/common/libgstaudio.def index 2e8d38d647..5db30459ea 100644 --- a/win32/common/libgstaudio.def +++ b/win32/common/libgstaudio.def @@ -38,9 +38,9 @@ EXPORTS gst_audio_clock_reset gst_audio_decoder_finish_frame gst_audio_decoder_get_audio_info - gst_audio_decoder_get_estimate_rate gst_audio_decoder_get_delay gst_audio_decoder_get_drainable + gst_audio_decoder_get_estimate_rate gst_audio_decoder_get_latency gst_audio_decoder_get_max_errors gst_audio_decoder_get_min_latency @@ -51,8 +51,8 @@ EXPORTS gst_audio_decoder_get_tolerance gst_audio_decoder_get_type gst_audio_decoder_merge_tags - gst_audio_decoder_set_estimate_rate gst_audio_decoder_set_drainable + gst_audio_decoder_set_estimate_rate gst_audio_decoder_set_latency gst_audio_decoder_set_max_errors gst_audio_decoder_set_min_latency @@ -86,6 +86,7 @@ EXPORTS gst_audio_encoder_set_frame_samples_min gst_audio_encoder_set_hard_min gst_audio_encoder_set_hard_resync + gst_audio_encoder_set_headers gst_audio_encoder_set_latency gst_audio_encoder_set_lookahead gst_audio_encoder_set_mark_granule