projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7313916
)
clip: Emit notify signal when setting Clip.layer
author
Thibault Saunier
<thibault.saunier@collabora.com>
Sat, 23 Mar 2013 07:45:00 +0000
(08:45 +0100)
committer
Thibault Saunier
<thibault.saunier@collabora.com>
Thu, 28 Mar 2013 10:16:41 +0000
(11:16 +0100)
ges/ges-clip.c
patch
|
blob
|
history
diff --git
a/ges/ges-clip.c
b/ges/ges-clip.c
index
7b3a021
..
296ae26
100644
(file)
--- a/
ges/ges-clip.c
+++ b/
ges/ges-clip.c
@@
-605,6
+605,13
@@
ges_clip_set_layer (GESClip * clip, GESTimelineLayer * layer)
GST_DEBUG ("clip:%p, layer:%p", clip, layer);
clip->priv->layer = layer;
+
+ /* We do not want to notify the setting of layer = NULL when
+ * it is actually the result of a move between layer (as we know
+ * that it will be added to another layer right after, and this
+ * is what imports here.) */
+ if (layer || clip->priv->is_moving == FALSE)
+ g_object_notify_by_pspec (G_OBJECT (clip), properties[PROP_LAYER]);
}
gboolean