Revision: 200949 PDK_3.0.f
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:06:59 +0200
changeset 1 2d3e1993fb02
parent 0 9b3e960ffc8a
child 2 c7e61a0077eb
Revision: 200949 Kit: 201004
camcordermmfplugin/filecomposer/Src/CamC3GPDataSinkImp.cpp
camcordermmfplugin/mediarecorder/Src/CCMRMDFVideoRecorder.cpp
--- a/camcordermmfplugin/filecomposer/Src/CamC3GPDataSinkImp.cpp	Thu Dec 17 08:51:24 2009 +0200
+++ b/camcordermmfplugin/filecomposer/Src/CamC3GPDataSinkImp.cpp	Tue Jan 26 12:06:59 2010 +0200
@@ -97,8 +97,6 @@
 CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp(void)
     {
     PRINT(_L("CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp enter"));
-    delete [] iVideoBuffer;
-    delete [] iAudioBuffer;
 
     if ( iFileName != KNullDesC )
         {
@@ -122,6 +120,8 @@
         iFS = NULL;
         }
 
+    delete [] iVideoBuffer;
+    delete [] iAudioBuffer;
     iObserver = NULL;
     iMMFFile = NULL; // not owned
     iFile = NULL; // not owned
--- a/camcordermmfplugin/mediarecorder/Src/CCMRMDFVideoRecorder.cpp	Thu Dec 17 08:51:24 2009 +0200
+++ b/camcordermmfplugin/mediarecorder/Src/CCMRMDFVideoRecorder.cpp	Tue Jan 26 12:06:59 2010 +0200
@@ -1881,8 +1881,12 @@
             iDevVideoRec->FindEncodersL(iMimeType, 0 /* aPreProc */, iAvailableVideoEncoders, EFalse );
             PRINT((_L("CCMRVideoRecorder::SetVideoCodecL() search found %d encoder(s)"), iAvailableVideoEncoders.Count() ));
             }
-        iConfig->SetVideoCodec(iMimeType);
-        iConfig->SetVideoPixelAspectRatio(numerator, denominator);
+        
+        if ( iConfig )
+            {
+            iConfig->SetVideoCodec(iMimeType);
+            iConfig->SetVideoPixelAspectRatio(numerator, denominator);
+            }
 
         UpdateSupportedVideoFrameSizesRates();