This looks good. For future reference,
CRs from the rarvcode project should go
to rarvcode-dev.
Eric
=============================================
Eric Hyche (ehyche real.com)
Technical Lead
RealNetworks, Inc.
> -----Original Message-----
> From: audio-dev-bounces helixcommunity.org
> [mailto:audio-dev-bounces helixcommunity.org] On
Behalf Of
> Junhong.Liu nokia.com
> Sent: Friday, April 06, 2007 12:05 AM
> To: audio-dev helixcommunity.org
> Subject: [Audio-dev] CR: Emulatordetects memory leak
when
> pressing 'back'after playing a clipwith audio that is
not supported.
>
> Resend for Arnel. Can anyone take a look?
>
> Thanks!
>
> Junhong
>
>
> ________________________________
>
> From: nokia-private-dev-bounces helixcommunity.org
> [mailto:nokia-private-dev-bounces helixcommunity.org]
> Sent: Tuesday, April 03, 2007 4:21 PM
> To: nokia-private-dev helixcommunity.org
> Subject: [Nokia-private-dev] FW:
> [datatype-restricted-dev] CR: Emulatordetects memory
leak
> when pressing 'back' after playing a clipwith audio
that is
> not supported.
>
>
>
> There doesn't appear to be a datatype-restricted-dev
> list. So, I wasn't sure where to post this.
>
> -Arnel
>
> ______________________________________________
> From: Periquet Arnel (Nokia-TP-MSW/Dallas)
> Sent: Tuesday, April 03, 2007 4:05 PM
> To: 'datatype-restricted-dev helixcommunity.org'
> Subject: [datatype-restricted-dev] CR:
> Emulator detects memory leak when pressing 'back' after
> playing a clip with audio that is not supported.
>
> "Nokia submits this code under
> the terms of a commercial contribution agreement with
> RealNetworks, and I am authorized to contribute this
code
> under said agreement."
>
> Modified by: Arnel.Periquet nokia.com
>
> Reviewed by:
>
> Date: 04-03-2007
>
> Project: Datatype-restricted/rm
>
> ErrorId: EHPE-6ZQHW4
>
> Synopsis: Emulator: MediaPlayer
> crashes when pressing back after playing a clip with
audio
> that is not supported.
>
> Playing a Real Media file that
> has an audio codec ID='atrc' results in an unsupported
codec
> for that audio type.
> In the test case, an RMF file
> with supported video and unsupported audio
(codecID='atrc')
> is played resulting in partial playback, where only the
video plays.
>
> In this scenario, the Real
> Media format plugin will allocate a Codec object.
However, if
> the codec is unsupported, the plugin fails to
deallocate that
> same Codec object. The observed emulator result, at
first
> glance, looks like a crash when you press the 'back'
button.
> However, the indication is that some memory leaked from
the
> Helix engine.
>
> Root Cause: Implementation.
> This problem is revealed by testing a Real Media clip
with
> unsupported audio and looking for unclaimed memory. To
my
> knowledge, this is a new test that has revealed an old
problem.
>
> Files Modified:
>
>
> Datatype-restricted/rm/audio/common/codec.cpp
>
> Image Size and Heap Use Impact: minimal
>
> Module Release Testing (STIF):
> All local cases pass.
>
> Test case(s) Added: No. This is
> a memory leak test that is currently manually performed
on
> the emulator.
>
> Memory Leak Check Performed:
> Yes. No leaks introduced. One leak removed.
>
> Platforms and Profiles Build Verified:
> Helix-client-s60-32-mmf-mdf-dsp
> Armv5, winscw
>
> Platforms and Profiles
> Functionality Verified:
> Helix-client-s60-32-mmf-mdf-dsp
> Armv5, winscw
>
> Branch:
>
> HEAD and Hxclient_2_1_0_cayennes
>
>
> Index: codec.cpp
>
>
============================================================
=======
> RCS file:
> /cvsroot/rarvcode-audio/common/codec.cpp,v
> retrieving revision 1.32
> diff -w -u -b -r1.32 codec.cpp
> --- codec.cpp 22 Dec 2005
> 20:10:13 -0000 1.32
> +++ codec.cpp 3 Apr 2007
> 15:28:29 -0000
>  -647,6 +647,11 
> }
> }
>
> + if (mLastError != HXR_OK)
> + {
> + FreeCodec();
> + }
> +
> return mLastError;
> }
>
>
_______________________________________________
Audio-dev mailing list
Audio-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/audio
-dev
|