- Timestamp:
- May 8, 2013 8:30:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/VideoRec.cpp
r45956 r45960 512 512 pStrm->pu8YuvBuf = pStrm->VpxRawImage.planes[0]; 513 513 514 p Ctx->fEnabled = true;514 pStrm->fEnabled = true; 515 515 return VINF_SUCCESS; 516 516 } … … 537 537 { 538 538 PVIDEORECSTREAM pStrm = &pCtx->Strm[uScreen]; 539 if (pStrm->Ebml.file != NIL_RTFILE) 540 { 541 int rc = Ebml_WriteWebMFileFooter(&pStrm->Ebml, 0); 542 AssertRC(rc); 543 RTFileClose(pStrm->Ebml.file); 544 pStrm->Ebml.file = NIL_RTFILE; 545 } 546 if (pStrm->Ebml.cue_list) 547 { 548 RTMemFree(pStrm->Ebml.cue_list); 549 pStrm->Ebml.cue_list = NULL; 550 } 551 vpx_img_free(&pStrm->VpxRawImage); 552 vpx_codec_err_t rcv = vpx_codec_destroy(&pStrm->VpxCodec); 553 Assert(rcv == VPX_CODEC_OK); 554 RTMemFree(pStrm->pu8RgbBuf); 555 pStrm->pu8RgbBuf = NULL; 539 if (pStrm->fEnabled) 540 { 541 if (pStrm->Ebml.file != NIL_RTFILE) 542 { 543 int rc = Ebml_WriteWebMFileFooter(&pStrm->Ebml, 0); 544 AssertRC(rc); 545 RTFileClose(pStrm->Ebml.file); 546 pStrm->Ebml.file = NIL_RTFILE; 547 } 548 if (pStrm->Ebml.cue_list) 549 { 550 RTMemFree(pStrm->Ebml.cue_list); 551 pStrm->Ebml.cue_list = NULL; 552 } 553 vpx_img_free(&pStrm->VpxRawImage); 554 vpx_codec_err_t rcv = vpx_codec_destroy(&pStrm->VpxCodec); 555 Assert(rcv == VPX_CODEC_OK); 556 RTMemFree(pStrm->pu8RgbBuf); 557 pStrm->pu8RgbBuf = NULL; 558 } 556 559 } 557 560
Note:
See TracChangeset
for help on using the changeset viewer.