Changeset 96177 in vbox
- Timestamp:
- Aug 12, 2022 2:27:58 PM (2 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/RecordingInternals.h
r96176 r96177 289 289 /** Timestamp (in ms) of the last frame was encoded. */ 290 290 uint64_t uLastTimeStampMs; 291 /** Number of encoding errors. */ 292 uint64_t cEncErrors; 291 293 292 294 #ifdef VBOX_WITH_STATISTICS /** @todo Register these values with STAM. */ 293 295 struct 294 296 { 295 /** Number of encoding errors. */296 uint64_t cEncErrors;297 297 /** Number of frames encoded. */ 298 298 uint64_t cEncBlocks; -
trunk/src/VBox/Main/src-client/RecordingCodec.cpp
r96176 r96177 157 157 if (rcv != VPX_CODEC_OK) 158 158 { 159 if (pCodec-> Stats.cEncErrors++ < 64) /** @todo Make this configurable. */159 if (pCodec->cEncErrors++ < 64) /** @todo Make this configurable. */ 160 160 LogRel(("Recording: Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv))); 161 161 return VERR_RECORDING_ENCODING_FAILED; 162 162 } 163 163 164 pCodec-> Stats.cEncErrors = 0;164 pCodec->cEncErrors = 0; 165 165 166 166 vpx_codec_iter_t iter = NULL; … … 775 775 pCodec->Parms.enmType = RECORDINGCODECTYPE_VIDEO; 776 776 pCodec->Parms.enmVideoCodec = enmVideoCodec; 777 778 #ifdef VBOX_WITH_STATISTICS779 pCodec->Stats.cEncBlocks = 0;780 pCodec->Stats.msEncTotal = 0;781 #endif782 777 } 783 778 … … 802 797 else 803 798 AssertFailedStmt(vrc = VERR_NOT_SUPPORTED); 799 800 if (RT_SUCCESS(vrc)) 801 { 802 pCodec->cEncErrors = 0; 803 #ifdef VBOX_WITH_STATISTICS 804 pCodec->Stats.cEncBlocks = 0; 805 pCodec->Stats.msEncTotal = 0; 806 #endif 807 } 808 804 809 return vrc; 805 810 }
Note:
See TracChangeset
for help on using the changeset viewer.