Fix a few audiodecoder things.
Beef up the autotest a little, and check the conversion. Change-Id: Ifffca118e092eb6c388db50a6eb12810a87aa32a Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
b9e2410a2a
commit
2ab74b7ff2
@@ -84,11 +84,15 @@ GstMessage* QGstreamerMessage::rawMessage() const
|
||||
|
||||
QGstreamerMessage& QGstreamerMessage::operator=(QGstreamerMessage const& rhs)
|
||||
{
|
||||
if (m_message != 0)
|
||||
gst_message_unref(m_message);
|
||||
if (rhs.m_message != m_message) {
|
||||
if (rhs.m_message != 0)
|
||||
gst_message_ref(rhs.m_message);
|
||||
|
||||
if ((m_message = rhs.m_message) != 0)
|
||||
gst_message_ref(m_message);
|
||||
if (m_message != 0)
|
||||
gst_message_unref(m_message);
|
||||
|
||||
m_message = rhs.m_message;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user