Changeset 43139 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 31, 2012 2:18:10 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80512
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r42944 r43139 445 445 446 446 #ifdef VBOX_WITH_VPX 447 BOOL fEnabled = false;448 447 if (VideoRecContextCreate(&mpVideoRecContext)) 449 448 { … … 451 450 return E_FAIL; 452 451 } 453 int rc = RTCritSectInit(&mpVideoRecContext->CritSect); 454 AssertRCReturn(rc, E_UNEXPECTED); 455 456 mpVideoRecContext->fEnabled = false; 452 453 BOOL fEnabled = false; 457 454 mParent->machine()->COMGETTER(VideoCaptureEnabled)(&fEnabled); 458 455 if (fEnabled) … … 465 462 mParent->machine()->COMGETTER(VideoCaptureFile)(&strVideoCaptureFile); 466 463 LogFlow(("VidoeRecording VPX enabled\n")); 467 if (VideoRecContextInit(mpVideoRecContext, strVideoCaptureFile,464 if (VideoRecContextInit(mpVideoRecContext, strVideoCaptureFile, 468 465 ulVideoCaptureHorzRes, ulVideoCaptureVertRes)) 469 466 { … … 471 468 return E_FAIL; 472 469 } 473 mpVideoRecContext->fEnabled = true;474 470 } 475 471 #endif … … 564 560 565 561 #ifdef VBOX_WITH_VPX 566 if ( mpVideoRecContext 567 && mpVideoRecContext->fEnabled) 562 if (mpVideoRecContext) 568 563 VideoRecContextClose(mpVideoRecContext); 569 564 #endif … … 3281 3276 3282 3277 #ifdef VBOX_WITH_VPX 3283 if ( pDisplay->mpVideoRecContext->fEnabled)3278 if (VideoRecIsEnabled(pDisplay->mpVideoRecContext)) 3284 3279 { 3285 3280 uint32_t u32VideoRecImgFormat = VPX_IMG_FMT_NONE; … … 3334 3329 } 3335 3330 3336 /* Just return in case of f ilure without any assertion */3331 /* Just return in case of failure without any assertion */ 3337 3332 if( RT_SUCCESS(rc)) 3338 3333 if (RT_SUCCESS(VideoRecDoRGBToYUV(pDisplay->mpVideoRecContext, u32VideoRecImgFormat))) … … 3341 3336 } 3342 3337 #endif 3343 3344 3345 3338 3346 3339 #ifdef DEBUG_sunlover
Note:
See TracChangeset
for help on using the changeset viewer.