{
LOGV("destructor");
if (mCamera != NULL) {
+#if 0 // JBQ
mCamera->setRecordingCallback(NULL, this);
+#endif
ReleaseQueuedFrames();
if ((mFlags & FLAGS_HOT_CAMERA) == 0) {
LOGV("camera was cold when we started, stopping preview");
if (mCamera == NULL) {
status = PVMFFailure;
} else {
+#if 0 // JBQ
mCamera->setRecordingCallback(recording_frame_callback, this);
+#endif
if (mCamera->startRecording() != NO_ERROR) {
status = PVMFFailure;
} else {
iDataEventCounter = 0;
if ( (iState == STATE_STARTED) || (iState == STATE_PAUSED) ) {
if (mCamera != NULL) {
+#if 0 // JBQ
mCamera->setRecordingCallback(NULL, this);
+#endif
mCamera->stopRecording();
ReleaseQueuedFrames();
}
LOGV("DoStop");
iDataEventCounter = 0;
if (mCamera != NULL) {
+#if 0 // JBQ
mCamera->setRecordingCallback(NULL, this);
+#endif
mCamera->stopRecording();
ReleaseQueuedFrames();
}
}
// Connect our client to the camera remote
+#if 0 // JBQ
mCamera = new Camera(camera);
+#endif
if (mCamera == NULL) {
LOGE("Unable to connect to camera");
return PVMFErrNoResources;