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:
Rafostar 2020-11-05 09:01:47 +01:00 committed by GStreamer Merge Bot
parent 9344403cfb
commit 40f1a34d10

View file

@ -2907,6 +2907,8 @@ gst_player_main (gpointer data)
g_assert_not_reached ();
}
gst_object_ref_sink (self->playbin);
if (self->video_renderer) {
GstElement *video_sink =
gst_player_video_renderer_create_video_sink (self->video_renderer,