[farsight2/master] Add fs_codec_remove_optional_parameter
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:55 PST 2008
---
docs/libs/farsight2-libs-sections.txt | 1 +
gst-libs/gst/farsight/fs-codec.c | 16 ++++++++++++++++
gst-libs/gst/farsight/fs-codec.h | 3 +++
3 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/docs/libs/farsight2-libs-sections.txt b/docs/libs/farsight2-libs-sections.txt
index ebcdbb5..2473159 100644
--- a/docs/libs/farsight2-libs-sections.txt
+++ b/docs/libs/farsight2-libs-sections.txt
@@ -122,6 +122,7 @@ fs_codec_list_are_equal
fs_codec_to_string
fs_codec_to_gst_caps
fs_codec_add_optional_parameter
+fs_codec_remove_optional_parameter
fs_codec_add_config_parameter
<SUBSECTION Standard>
FS_TYPE_CODEC
diff --git a/gst-libs/gst/farsight/fs-codec.c b/gst-libs/gst/farsight/fs-codec.c
index ce02bef..a52836e 100644
--- a/gst-libs/gst/farsight/fs-codec.c
+++ b/gst-libs/gst/farsight/fs-codec.c
@@ -759,3 +759,19 @@ fs_codec_add_config_parameter (FsCodec *codec,
codec->config_params = g_list_append (codec->config_params, param);
}
+
+/**
+ * fs_codec_remove_optional_parameter:
+ * @codec: a #FsCodec
+ * @param: a pointer to the #FsCodecParameter to remove
+ *
+ * Removes an optional parameter from a codec
+ */
+
+void
+fs_codec_remove_optional_parameter (FsCodec *codec,
+ FsCodecParameter *param)
+{
+ g_slice_free (FsCodecParameter, param);
+ codec->optional_params = g_list_remove (codec->optional_params, param);
+}
diff --git a/gst-libs/gst/farsight/fs-codec.h b/gst-libs/gst/farsight/fs-codec.h
index 55f72be..884888d 100644
--- a/gst-libs/gst/farsight/fs-codec.h
+++ b/gst-libs/gst/farsight/fs-codec.h
@@ -145,6 +145,9 @@ const gchar *fs_media_type_to_string (FsMediaType media_type);
void fs_codec_add_optional_parameter (FsCodec *codec, const gchar *name,
const gchar *value);
+void fs_codec_remove_optional_parameter (FsCodec *codec,
+ FsCodecParameter *param);
+
void fs_codec_add_config_parameter (FsCodec *codec, const gchar *name,
const gchar *value);
--
1.5.6.5
More information about the farsight-commits
mailing list