GNOME Bugzilla – Bug 740325
Add a setVideoSink() method to QGst::Ui::GraphicsVideoSurface
Last modified: 2018-05-04 14:56:16 UTC
Created attachment 290927 [details] [review] Add a setVideoSink() method to QGst::Ui::GraphicsVideoSurface to allow the use of a pre-existing qtvideosink element The GraphicsVideoSurface class creates a qtvideosink element on demand to bind to a QGraphicsView. The API doesn't allow using a pre-existing qtvideosink created independently from a GraphicsVideoSurface. For example one cannot bind to an element created with QGst::Parse::launch. The proposed patch adds a setVideoSink() method to GraphicsVideoSurface to provide this flexibility.
Thank you for that patch. However, I don't find it suitable for merging. The reason why it is not allowed to set the element on this class is because it's too error prone. There are several ways the internal state of the various components can get messed up and it requires a lot of checks, which are not in your patch. I don't think that using the internal element is too much of an annoyance.