mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
gnlobject: Allow commiting of object that are not inside a composition
Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
This commit is contained in:
parent
23f58e27e6
commit
9c9fe03b8f
1 changed files with 1 additions and 7 deletions
|
@ -49,18 +49,12 @@ static GObjectClass *parent_class = NULL;
|
|||
****************************************************/
|
||||
#define CHECK_AND_SET(PROPERTY, property, prop_str, print_format) \
|
||||
{ \
|
||||
GstObject *parent = gst_object_get_parent (GST_OBJECT (object)); \
|
||||
if (parent == NULL && !GNL_OBJECT_IS_COMPOSITION (object)) { \
|
||||
GST_INFO_OBJECT (object, "Not in a composition yet, " \
|
||||
"not commiting" prop_str); \
|
||||
} else if (object->pending_##property != object->property) { \
|
||||
if (object->pending_##property != object->property) { \
|
||||
object->property = object->pending_##property; \
|
||||
GST_DEBUG_OBJECT(object, "Setting " prop_str " to %" \
|
||||
print_format, object->property); \
|
||||
} else \
|
||||
GST_DEBUG_OBJECT(object, "Nothing to do for " prop_str); \
|
||||
if (parent) \
|
||||
gst_object_unref (parent); \
|
||||
}
|
||||
|
||||
#define SET_PENDING_VALUE(property, property_str, type, print_format) \
|
||||
|
|
Loading…
Reference in a new issue