mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gdkpixbufoverlay: handle setting NULL gdkpixbuf
... which is a clearer way to clear any current overlay, other than fiddling with alpha or positioning properties to make it virtually go away.
This commit is contained in:
parent
4f478357ae
commit
2715daebf3
1 changed files with 7 additions and 2 deletions
|
@ -295,8 +295,13 @@ gst_gdk_pixbuf_overlay_set_property (GObject * object, guint property_id,
|
||||||
|
|
||||||
if (overlay->pixbuf != NULL)
|
if (overlay->pixbuf != NULL)
|
||||||
g_object_unref (overlay->pixbuf);
|
g_object_unref (overlay->pixbuf);
|
||||||
overlay->pixbuf = g_object_ref (pixbuf);
|
if (pixbuf) {
|
||||||
gst_gdk_pixbuf_overlay_set_pixbuf (overlay, g_object_ref (pixbuf));
|
overlay->pixbuf = g_object_ref (pixbuf);
|
||||||
|
gst_gdk_pixbuf_overlay_set_pixbuf (overlay, g_object_ref (pixbuf));
|
||||||
|
} else {
|
||||||
|
overlay->pixbuf = NULL;
|
||||||
|
gst_buffer_replace (&overlay->pixels, NULL);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PROP_OFFSET_X:
|
case PROP_OFFSET_X:
|
||||||
|
|
Loading…
Reference in a new issue