[Datatype-cvs] rm/video/codec/rv89combo/frontend rv30api.cpp, 1.5, 1.5.20.1

[Datatype-cvs] rm/video/codec/rv89combo/frontend rv30api.cpp, 1.5, 1.5.20.1

stanb at helixcommunity.org stanb at helixcommunity.org
Fri Aug 6 14:22:47 PDT 2004


Update of /cvsroot/datatype/rm/video/codec/rv89combo/frontend
In directory cvs-new:/tmp/cvs-serv10557/datatype/rm/video/codec/rv89combo/frontend

Modified Files:
      Tag: hxclient_ipv4_2004-05-19
	rv30api.cpp 
Log Message:
Crash while enumerating video codecs by the Producer SDK fixed.
(PR 114825) (CR by Milko Boic)


Index: rv30api.cpp
===================================================================
RCS file: /cvsroot/datatype/rm/video/codec/rv89combo/frontend/rv30api.cpp,v
retrieving revision 1.5
retrieving revision 1.5.20.1
diff -u -d -r1.5 -r1.5.20.1
--- rv30api.cpp	15 Oct 2003 10:25:58 -0000	1.5
+++ rv30api.cpp	6 Aug 2004 21:22:45 -0000	1.5.20.1
@@ -215,7 +215,10 @@
 	HX_MOF * pmofOut, UINT16 ioDirection)
 {
 	HX_TRACE("PNCodec_QueryMediaFormat()\r\n");
-	HX_ASSERT_VALID_PTR(codecRef);
+        if(codecRef == NULL)
+        {
+            return HXR_UNEXPECTED;
+        }
 
 	IHX20Codec* pCodecObj	= (IHX20Codec *)codecRef;
 	return pCodecObj->PNCodec_QueryMediaFormat(pmofIn, pmofOut, ioDirection);




More information about the Datatype-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.