media: patch update
[siplcs.git] / contrib / media-patches / purple_media_fs2_dispose.patch
blobff7bbf9fbac47aed5cc9873942b248f7a567ee91
1 --- a/libpurple/media/backend-fs2.c
2 +++ b/libpurple/media/backend-fs2.c
3 @@ -169,8 +169,7 @@
4 purple_media_get_manager(priv->media));
6 gst_element_set_locked_state(priv->confbin, TRUE);
7 - gst_element_set_state(GST_ELEMENT(priv->confbin),
8 - GST_STATE_NULL);
9 + gst_object_ref(priv->confbin);
11 if (pipeline) {
12 GstBus *bus;
13 @@ -187,6 +186,10 @@
14 "Couldn't get the pipeline.\n");
17 + gst_element_set_state(GST_ELEMENT(priv->confbin),
18 + GST_STATE_NULL);
19 + gst_object_unref(priv->confbin);
21 priv->confbin = NULL;
22 priv->conference = NULL;