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:
Michael Goddard
2012-02-17 19:10:35 +10:00
committed by Qt by Nokia
parent b9e2410a2a
commit 2ab74b7ff2
6 changed files with 355 additions and 120 deletions

View File

@@ -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;
}