mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: qt: Return a new reference to the renderer from VideoRenderer::renderer()
gst_player_new_full() takes ownership of it, and that's where it is usually used. Without this we would create assertions on application shutdown. Fixes #129
This commit is contained in:
parent
d0bc110836
commit
afd72fe79e
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ void Player::setPosition(qint64 pos)
|
|||
|
||||
GstPlayerVideoRenderer *VideoRenderer::renderer()
|
||||
{
|
||||
return renderer_;
|
||||
return static_cast<GstPlayerVideoRenderer*> (gst_object_ref (renderer_));
|
||||
}
|
||||
|
||||
VideoRenderer::VideoRenderer()
|
||||
|
|
Loading…
Reference in a new issue