summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@epitech.eu>2013-07-09 23:16:53 +0200
committerThibault Saunier <thibault.saunier@collabora.com>2013-07-09 17:24:47 -0400
commit560d53bdbf66b269b8289f078f9c929dd9d6d85e (patch)
treeb7652691cb76b0b3126bd0bf405c15eed5bce2d3
parente6fc28ff47180df95f48a763416a65e4ae2c0a55 (diff)
composition: Check if we have an entry before trying to get its probeid
The object can be removed at the time the pad is removed, avoid segfaulting when that happens.
-rw-r--r--gnl/gnlcomposition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c
index fe2c0cc..aea39a2 100644
--- a/gnl/gnlcomposition.c
+++ b/gnl/gnlcomposition.c
@@ -2761,7 +2761,7 @@ object_pad_removed (GnlObject * object, GstPad * pad, GnlComposition * comp)
else {
GnlCompositionEntry *entry = COMP_ENTRY (comp, object);
- if (entry->probeid) {
+ if (entry && entry->probeid) {
gst_pad_remove_probe (pad, entry->probeid);
entry->probeid = 0;
}