changeset 26109:5275c7ef9edf

Manipulate optional parameters properly.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 12 Jan 2009 03:43:04 +0000
parents 71eee5468b9d
children 3fd5bda55d76 b04508e5cc6c
files libpurple/media.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Mon Jan 12 02:42:29 2009 +0000
+++ b/libpurple/media.c	Mon Jan 12 03:43:04 2009 +0000
@@ -696,7 +696,7 @@
 
 	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 @@
 
 	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 @@
 	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);
 	}