summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform/gstreamer/common/qgstreamermessage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Turn the gstreamer backend into a pluginLars Knoll2022-01-111-94/+0
| | | | | | | Change-Id: Iff27c996f2f9432a97a492aee9bdf2e60b131e4e Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io>
* Do not leak GstMessage and avoid accidental decrease in reference cntPiotr Srebrny2021-09-301-0/+4
| | | | | | | | | | | | | | | | | getMessage() call creates an object that should be unreferenced after using it. This patch encapsulate the returned object in QGstreamerMesssage with proper referance handling. Calling QGstObject(GST_MESSAGE_SRC(gm)).name() will effectively decrease the reference counter on gm, as the object is initialized without increasing reference on it. The patch relaces it with .source().name(). Avoid implicit conversion from raw pointers with reference counting to c++ objects. This may cause accidental errors. Pick-to: 6.2 Change-Id: Ica994bb5c15ddb355af4ed24cbc26fd3a9a288bd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Modernize code baseLars Knoll2021-03-021-3/+3
| | | | | | | | | | | Use clang-modernize to modernize the code base * Use = default where applicable * Use nullptr Change-Id: I88b307e76b7f7dde090354ff4b292cea76f5c60c Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Rename QGStreamerPlayerControl to QGStreamerMediaPlayerLars Knoll2021-03-021-3/+0
| | | | | | Change-Id: I60eed1275f78386a57a27ff85a71c548b27e4aac Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Get rid of plugins for MM backendsLars Knoll2021-01-221-0/+93
There's no need for having those in plugins and we can further remove abstractions and simplify our code if the code is directly compiled into Qt Multimedia. Change-Id: I5267a6a776375d99be8f0de4207f0288d963e620 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>