[farsight2/master] Add const keyword to proper places in the FsCodec functions
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:09 PST 2008
---
gst-libs/gst/farsight/fs-codec.c | 8 ++++----
gst-libs/gst/farsight/fs-codec.h | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-codec.c b/gst-libs/gst/farsight/fs-codec.c
index 7537c49..b440be2 100644
--- a/gst-libs/gst/farsight/fs-codec.c
+++ b/gst-libs/gst/farsight/fs-codec.c
@@ -153,7 +153,7 @@ fs_codec_destroy (FsCodec * codec)
* Returns: a copy of the codec
*/
FsCodec *
-fs_codec_copy (FsCodec * codec)
+fs_codec_copy (const FsCodec * codec)
{
FsCodec *copy = g_new0 (FsCodec, 1);
@@ -449,7 +449,7 @@ fs_media_type_to_string (FsMediaType media_type)
* Return value: the newly-allocated string
*/
gchar *
-fs_codec_to_string (FsCodec *codec)
+fs_codec_to_string (const FsCodec *codec)
{
GString *string = g_string_new ("");
GList *item;
@@ -518,7 +518,7 @@ compare_lists(GList *list1, GList *list2)
*/
gboolean
-fs_codec_are_equal (FsCodec *codec1, FsCodec *codec2)
+fs_codec_are_equal (const FsCodec *codec1, const FsCodec *codec2)
{
if (codec1 == codec2)
return TRUE;
@@ -555,7 +555,7 @@ fs_codec_are_equal (FsCodec *codec1, FsCodec *codec2)
*/
GstCaps *
-fs_codec_to_gst_caps (FsCodec *codec)
+fs_codec_to_gst_caps (const FsCodec *codec)
{
GstCaps *caps;
GstStructure *structure;
diff --git a/gst-libs/gst/farsight/fs-codec.h b/gst-libs/gst/farsight/fs-codec.h
index 5504ffd..fc02b3d 100644
--- a/gst-libs/gst/farsight/fs-codec.h
+++ b/gst-libs/gst/farsight/fs-codec.h
@@ -117,16 +117,16 @@ FsCodec *fs_codec_new (int id, const char *encoding_name,
FsMediaType media_type, guint clock_rate);
void fs_codec_destroy (FsCodec * codec);
-FsCodec *fs_codec_copy (FsCodec * codec);
+FsCodec *fs_codec_copy (const FsCodec * codec);
void fs_codec_list_destroy (GList *codec_list);
GList *fs_codec_list_copy (const GList *codec_list);
GList *fs_codec_list_from_keyfile (const gchar *filename);
-gchar *fs_codec_to_string (FsCodec *codec);
+gchar *fs_codec_to_string (const FsCodec *codec);
-gboolean fs_codec_are_equal (FsCodec *codec1, FsCodec *codec2);
+gboolean fs_codec_are_equal (const FsCodec *codec1, const FsCodec *codec2);
-GstCaps *fs_codec_to_gst_caps (FsCodec *codec);
+GstCaps *fs_codec_to_gst_caps (const FsCodec *codec);
const gchar *fs_media_type_to_string (FsMediaType media_type);
--
1.5.6.5
More information about the farsight-commits
mailing list