Set multiple properties with freeze_notify
Hello all,
So I am trying to set multiple properties of a GstElement using g_object_set. The number of properties is unknown so this must occur within a loop. I want all the properties to be updated at the same time, so I was trying to use g_object_freeze_notify
& g_object_thaw_notify
.
So basically it looks something like this:
g_object_freeze_notify(object);
for (...)
{
g_object_set(object, ...);
}
g_object_thaw_notify(object);
My goal is to update videocrop
properties and make sure the output is always at a fixed width & height (so I have to change top & bottom and left & right at the same time).
While I was testing my code, I tried removing the g_object_thaw_notify()
call, and surprisingly, the object's properties did in fact change.
Is that an issue? Am I doing something wrong?
Thanks. Omer.