Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgstreamermessage.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <gst/gst.h>
5
7
9
16 m_message(message)
17{
18 gst_message_ref(m_message);
19}
20
22 m_message(m.m_message)
23{
24 gst_message_ref(m_message);
25}
26
28{
29 gst_structure_get(structure.structure, "message", GST_TYPE_MESSAGE, &m_message, nullptr);
30}
31
33{
34 if (m_message != nullptr)
35 gst_message_unref(m_message);
36}
37
39{
40 return m_message;
41}
42
44{
45 if (rhs.m_message != m_message) {
46 if (rhs.m_message != nullptr)
47 gst_message_ref(rhs.m_message);
48
49 if (m_message != nullptr)
50 gst_message_unref(m_message);
51
52 m_message = rhs.m_message;
53 }
54
55 return *this;
56}
57
const GstStructure * structure
Definition qgst_p.h:135
QGstStructure structure() const
QGstreamerMessage & operator=(QGstreamerMessage const &rhs)
GstMessage * rawMessage() const
QGstreamerMessage()=default
Combined button and popup list for selecting options.
const GLfloat * m
GLuint GLsizei const GLchar * message