leo-xiong / rowboat

Automatically exported from code.google.com/p/rowboat
https://code.google.com/p/rowboat
0 stars 0 forks source link

Video recording failure on Overo file + rowboat-gingerbread with USB cam #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Connect USB cam to Overo Fire board
2.Boot and start Camera.apk

What is the expected output? What do you see instead?
- expected : Video recording works
- instead : The apk freezes when pushed the recording button. The failure 
occurs with a probability of about 30%.

What version of the product are you using? On what operating system?
- Overo Fire with rowboat-gingerbread

Please provide any additional information below.
- I have concluded this is due to an uninitialized variable and I fixed it as 
the following:

---hardware/ti/omap3/camera/CameraHardware.cpp---

CameraHardware::CameraHardware()

                  : mParameters(),

                    mCamera(0),

                    mPreviewFrameSize(0),

                    mNotifyCb(0),

                    mDataCb(0),

                    mDataCbTimestamp(0),

                    mCallbackCookie(0),

                    mMsgEnabled(0),

                    previewStopped(true),

+                                       mRecordingEnabled(false)

{

Currently in rowboat-gingerbread, mRecordingEnabled is not initialized properly 
and the value can be true, though recording is not ready. I have found this is 
the root cause of the instability.

Original issue reported on code.google.com by Nobu.Kak...@gmail.com on 22 Apr 2012 at 8:22