[Helix-client-dev] CR-Client: fix for Mac crash w/MPEG-4 vid via RTSP (PR 115770)
milko milko at real.com
Looks good.
At 08:49 PM 5/6/2004, Erik Hodge wrote:
>Synopsis: Fixes Mac crash playing MPEG-4 Video via RTSP from
>a .ram file.
>
>Overview:
> Fixes Mac PR 115770 where a MPEG-4 Video played from a .ram
> via RTSP was crashing when a buffer was released that never
> got set to a valid value. Fix is to initialize the pBuf to
> NULL.
>
>Files Modified:
> /cvsroot/protocol/transport/common/system/rtsptran.cpp
>
>Image Size and Heap Use impact:
> +4 bytes
>
>Platforms and Profiles Affected:
> hxclient_1_2_2_neptune branch, Mac platform had the crash
> but probably affects other platforms under the same
> conditions. helix-client-all-defines.
>
>
>The diff:
>---------
>
>Index: rtsptran.cpp
>===================================================================
>RCS file: /cvsroot/protocol/transport/common/system/rtsptran.cpp,v
>retrieving revision 1.19.2.3
>diff -u -r1.19.2.3 rtsptran.cpp
>--- rtsptran.cpp 1 Mar 2004 22:11:32 -0000 1.19.2.3
>+++ rtsptran.cpp 7 May 2004 03:36:34 -0000
>@@ -573,7 +573,7 @@
>
> if (pStreamData->m_pTSOrderHack)
> {
>- IHXBuffer* pBuf;
>+ IHXBuffer* pBuf = NULL;
> UINT32 ulHX;
> UINT32 ulRTP;
> UINT16 unStrmNo;
>
>
>_______________________________________________
>Helix-client-dev mailing list
>Helix-client-dev at lists.helixcommunity.org
>http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev