102.11.0-1
[arch-packages.git] / farstream-0.1 / trunk / fix-crash.patch
blobac411f15a4886e593cf6c37029e0f0bb6d3063ce
1 From e349a7db681b643beaf8174a32b071292abd980e Mon Sep 17 00:00:00 2001
2 From: Olivier CrĂȘte <olivier.crete@collabora.com>
3 Date: Thu, 27 Feb 2014 23:00:13 +0000
4 Subject: raw: Fix crash where the stream would try to contact its session before its been set
6 ---
7 (limited to 'gst/fsrawconference')
9 diff --git a/gst/fsrawconference/fs-raw-stream.c b/gst/fsrawconference/fs-raw-stream.c
10 index fe5326b..eb8db74 100644
11 --- a/gst/fsrawconference/fs-raw-stream.c
12 +++ b/gst/fsrawconference/fs-raw-stream.c
13 @@ -436,7 +436,8 @@ fs_raw_stream_set_property (GObject *object,
14 (direction & FS_DIRECTION_SEND) ? TRUE : FALSE, NULL);
15 g_object_unref (st);
17 - fs_raw_session_update_direction (self->priv->session, direction);
18 + if (self->priv->session)
19 + fs_raw_session_update_direction (self->priv->session, direction);
20 if (conference)
21 GST_OBJECT_LOCK (conference);
24 cgit v0.9.0.3