mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
playback/player: gtk: fix gtkglsink leak
The ref returned by gst_element_factory_make() was leaked.
This commit is contained in:
parent
10dd3a2177
commit
5b8ba60c46
1 changed files with 2 additions and 1 deletions
|
@ -114,12 +114,13 @@ gst_player_gtk_video_renderer_init (GstPlayerGtkVideoRenderer * self)
|
|||
} else {
|
||||
gtk_sink = gst_element_factory_make ("gtksink", NULL);
|
||||
|
||||
self->sink = gtk_sink;
|
||||
self->sink = gst_object_ref (gtk_sink);
|
||||
}
|
||||
|
||||
g_assert (self->sink != NULL);
|
||||
|
||||
g_object_get (gtk_sink, "widget", &self->widget, NULL);
|
||||
gst_object_unref (gtk_sink);
|
||||
}
|
||||
|
||||
static GstElement *gst_player_gtk_video_renderer_create_video_sink
|
||||
|
|
Loading…
Reference in a new issue