summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2011-04-12 16:44:08 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2011-04-12 16:44:08 -0400
commit6bb756a1928184e4978cd065905bfbba0de158f7 (patch)
tree6a2eb1414ecb675a96ab828422cdfd73c3eb5252
parent9e6e83dc0e9cf3954db0058cc23251766299cf7c (diff)
Don't free codecs borrowed from the GstMessage
-rw-r--r--telepathy-farsight/stream.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c
index 1032601..26eeb42 100644
--- a/telepathy-farsight/stream.c
+++ b/telepathy-farsight/stream.c
@@ -2353,27 +2353,24 @@ _tf_stream_bus_message (TfStream *stream,
value = gst_structure_get_value (s, "codec");
codec = g_value_get_boxed (value);
- g_object_get (fssession, "current-send-codec", &objcodec, NULL);
+ g_object_get (fssession, "current-send-codec", &objcodec, NULL);
if (!fs_codec_are_equal (objcodec, codec))
{
fs_codec_destroy (objcodec);
return TRUE;
}
+ fs_codec_destroy (objcodec);
value = gst_structure_get_value (s, "secondary-codecs");
secondary_codecs = g_value_get_boxed (value);
- if (codec)
- DEBUG (stream, "Send codec changed: " FS_CODEC_FORMAT,
- FS_CODEC_ARGS (codec));
+ DEBUG (stream, "Send codec changed: " FS_CODEC_FORMAT,
+ FS_CODEC_ARGS (codec));
cb_fs_send_codec_changed (stream, codec, secondary_codecs);
- if (codec)
- fs_codec_destroy (codec);
- fs_codec_list_destroy (secondary_codecs);
return TRUE;
}
else if (gst_structure_has_name (s, "farsight-component-state-changed"))