[farsight2/master] Copy th econfig param if they exist

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


---
 gst-libs/gst/farsight/fs-codec.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-codec.c b/gst-libs/gst/farsight/fs-codec.c
index 32a741f..db5f0d1 100644
--- a/gst-libs/gst/farsight/fs-codec.c
+++ b/gst-libs/gst/farsight/fs-codec.c
@@ -168,7 +168,8 @@ fs_codec_copy (const FsCodec * codec)
 
   copy->optional_params = NULL;
 
-  if (codec->optional_params) {
+  if (codec->optional_params)
+  {
     GList *lp;
     FsCodecParameter *param;
     FsCodecParameter *param_copy;
@@ -183,6 +184,13 @@ fs_codec_copy (const FsCodec * codec)
           param_copy);
     }
     copy->optional_params = g_list_reverse (copy->optional_params);
+  }
+
+  if (codec->config_params)
+  {
+    GList *lp;
+    FsCodecParameter *param;
+    FsCodecParameter *param_copy;
 
     for (lp = codec->config_params; lp; lp = g_list_next (lp)) {
       param_copy = g_slice_new (FsCodecParameter);
-- 
1.5.6.5




More information about the farsight-commits mailing list