[Opalvoip-svn] SF.net SVN: opalvoip:[34690] opal/trunk/src/opal/mediafmt.cxx
Brought to you by:
csoutheren,
rjongbloed
|
From: <rjo...@us...> - 2016-03-16 10:51:21
|
Revision: 34690
http://sourceforge.net/p/opalvoip/code/34690
Author: rjongbloed
Date: 2016-03-16 10:51:18 +0000 (Wed, 16 Mar 2016)
Log Message:
-----------
Fixed GNU warning
Modified Paths:
--------------
opal/trunk/src/opal/mediafmt.cxx
Modified: opal/trunk/src/opal/mediafmt.cxx
===================================================================
--- opal/trunk/src/opal/mediafmt.cxx 2016-03-15 16:01:05 UTC (rev 34689)
+++ opal/trunk/src/opal/mediafmt.cxx 2016-03-16 10:51:18 UTC (rev 34690)
@@ -1851,7 +1851,10 @@
OpalAudioFormat::FrameType OpalAudioFormat::GetFrameType(const BYTE * payloadPtr, PINDEX payloadSize, FrameDetectorPtr & detector) const
{
PWaitAndSignal m(m_mutex);
- return m_info == NULL ? e_UnknownFrameType : dynamic_cast<OpalAudioFormatInternal *>(m_info)->GetFrameType(payloadPtr, payloadSize, detector);
+ if (m_info == NULL)
+ return e_UnknownFrameType;
+
+ return dynamic_cast<OpalAudioFormatInternal *>(m_info)->GetFrameType(payloadPtr, payloadSize, detector);
}
@@ -2024,7 +2027,10 @@
OpalVideoFormat::FrameType OpalVideoFormat::GetFrameType(const BYTE * payloadPtr, PINDEX payloadSize, FrameDetectorPtr & detector) const
{
PWaitAndSignal m(m_mutex);
- return m_info == NULL ? e_UnknownFrameType : dynamic_cast<OpalVideoFormatInternal *>(m_info)->GetFrameType(payloadPtr, payloadSize, detector);
+ if (m_info == NULL)
+ return e_UnknownFrameType;
+
+ return dynamic_cast<OpalVideoFormatInternal *>(m_info)->GetFrameType(payloadPtr, payloadSize, detector);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|