[farsight2/master] Put variable declaration down into the block where its used

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:25:43 PST 2008


---
 gst/fsrtpconference/fs-rtp-codec-negotiation.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 7fb4e01..2b3488e 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -610,14 +610,13 @@ create_local_codec_associations (
         if (codec)
         {
           GList *item = NULL;
-          FsCodecParameter *param;
 
           /* Keep the local configuration */
           for (item = oldca->codec->optional_params;
                item;
                item = g_list_next (item))
           {
-            param = item->data;
+            FsCodecParameter *param = item->data;
             if (codec_has_config_data_named (codec, param->name))
               fs_codec_add_optional_parameter (codec, param->name,
                   param->value);
-- 
1.5.6.5




More information about the farsight-commits mailing list