pidgin.vv: dcc53c97: Manipulate optional parameters properly.

maiku at soc.pidgin.im maiku at soc.pidgin.im
Sun Jan 11 22:46:25 EST 2009


-----------------------------------------------------------------
Revision: dcc53c9783aecbdde6269c4310ec4b0cf511bd9e
Ancestor: 868424234ef3f596f3f0d96fc4b518876f960790
Author: maiku at soc.pidgin.im
Date: 2009-01-12T03:43:04
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/dcc53c9783aecbdde6269c4310ec4b0cf511bd9e

Modified files:
        libpurple/media.c

ChangeLog: 

Manipulate optional parameters properly.

-------------- next part --------------
============================================================
--- libpurple/media.c	5641290642a77b83ce85d3de3ca7b24085c19c9e
+++ libpurple/media.c	f326bacb7c29aaf6da5bf346d001f84186470633
@@ -696,7 +696,7 @@ purple_media_codec_copy(PurpleMediaCodec
 
 	for (iter = codec->optional_params; iter; iter = g_list_next(iter)) {
 		PurpleMediaCodecParameter *param =
-				(PurpleMediaCodecParameter*)iter;
+				(PurpleMediaCodecParameter*)iter->data;
 		purple_media_codec_add_optional_parameter(new_codec,
 				param->name, param->value);
 	}
@@ -738,7 +738,7 @@ purple_media_codec_to_fs(const PurpleMed
 
 	for (iter = codec->optional_params; iter; iter = g_list_next(iter)) {
 		PurpleMediaCodecParameter *param =
-				(PurpleMediaCodecParameter*)iter;
+				(PurpleMediaCodecParameter*)iter->data;
 		fs_codec_add_optional_parameter(new_codec,
 				param->name, param->value);
 	}
@@ -761,7 +761,7 @@ purple_media_codec_from_fs(const FsCodec
 	new_codec->channels = codec->channels;
 
 	for (iter = codec->optional_params; iter; iter = g_list_next(iter)) {
-		FsCodecParameter *param = (FsCodecParameter*)iter;
+		FsCodecParameter *param = (FsCodecParameter*)iter->data;
 		purple_media_codec_add_optional_parameter(new_codec,
 				param->name, param->value);
 	}


More information about the Commits mailing list