mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
player: call ref_sink on pipeline
Otherwise `gst_player_get_pipeline()` will return a floating reference which may confuse bindings and lead to crash. Fixes #1450 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1763>
This commit is contained in:
parent
9344403cfb
commit
40f1a34d10
1 changed files with 2 additions and 0 deletions
|
@ -2907,6 +2907,8 @@ gst_player_main (gpointer data)
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_object_ref_sink (self->playbin);
|
||||||
|
|
||||||
if (self->video_renderer) {
|
if (self->video_renderer) {
|
||||||
GstElement *video_sink =
|
GstElement *video_sink =
|
||||||
gst_player_video_renderer_create_video_sink (self->video_renderer,
|
gst_player_video_renderer_create_video_sink (self->video_renderer,
|
||||||
|
|
Loading…
Reference in a new issue