Changeset 75391 in vbox
- Timestamp:
- Nov 12, 2018 9:22:42 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126526
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/Recording.cpp
r75361 r75391 145 145 146 146 if (RT_FAILURE(rc)) 147 LogRel(("Recording: Encoding thread failed with rc=%Rrc\n", rc));147 LogRel(("Recording: Encoding thread failed (%Rrc)\n", rc)); 148 148 149 149 /* Keep going in case of errors. */ … … 238 238 if (RT_SUCCESS(rc)) 239 239 { 240 LogRel(("Recording: Started\n")); 240 241 this->enmState = RECORDINGSTS_STARTED; 241 242 } 243 else 244 Log(("Recording: Failed to start (%Rrc)\n", rc)); 242 245 243 246 return rc; … … 261 264 if (RT_SUCCESS(rc)) 262 265 { 266 LogRel(("Recording: Stopped\n")); 263 267 this->enmState = RECORDINGSTS_CREATED; 264 268 } 269 else 270 Log(("Recording: Failed to stop (%Rrc)\n", rc)); 265 271 266 272 LogFlowThisFunc(("%Rrc\n", rc)); -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r75361 r75391 200 200 else 201 201 { 202 LogRel(("Recording: Setting encoder deadline to '%s'\n", value.c_str()));203 202 this->Video.Codec.VPX.uEncoderDeadline = value.toUInt32(); 204 203 #endif … … 208 207 { 209 208 if (value.compare("false", Utf8Str::CaseInsensitive) == 0) 210 {211 209 this->ScreenSettings.featureMap[RecordingFeature_Video] = false; 212 #ifdef VBOX_WITH_AUDIO_RECORDING213 LogRel(("Recording: Only audio will be recorded\n"));214 #endif215 }216 210 } 217 211 else if (key.compare("ac_enabled", Utf8Str::CaseInsensitive) == 0) … … 219 213 #ifdef VBOX_WITH_AUDIO_RECORDING 220 214 if (value.compare("true", Utf8Str::CaseInsensitive) == 0) 221 {222 215 this->ScreenSettings.featureMap[RecordingFeature_Audio] = true; 223 }224 else225 LogRel(("Recording: Only video will be recorded\n"));226 216 #endif 227 217 } … … 692 682 693 683 if (fVideoEnabled) 684 { 694 685 rc = initVideo(); 686 if (RT_FAILURE(rc)) 687 return rc; 688 } 695 689 696 690 if (fAudioEnabled) 691 { 697 692 rc = initAudio(); 693 if (RT_FAILURE(rc)) 694 return rc; 695 } 698 696 699 697 switch (this->ScreenSettings.enmDest) … … 715 713 if (RT_FAILURE(rc)) 716 714 { 717 LogRel(("Recording: Failed to create the captureoutput file '%s' (%Rrc)\n", pszFile, rc));715 LogRel(("Recording: Failed to create output file '%s' (%Rrc)\n", pszFile, rc)); 718 716 break; 719 717 } … … 745 743 } 746 744 747 LogRel(("Recording: Recording audio in %RU16Hz, %RU8 bit, %RU8 %s (track #%RU8)\n",748 Settings.Audio.uHz, Settings.Audio.cBits, Settings.Audio.cChannels,745 LogRel(("Recording: Recording audio of screen #%u in %RU16Hz, %RU8 bit, %RU8 %s (track #%RU8)\n", 746 this->uScreenID, Settings.Audio.uHz, Settings.Audio.cBits, Settings.Audio.cChannels, 749 747 Settings.Audio.cChannels ? "channels" : "channel", this->uTrackAudio)); 750 748 } … … 768 766 } 769 767 #endif 770 LogRel(("Recording: Recording %s to '%s'\n", szWhat, pszFile));768 LogRel(("Recording: Recording %s of screen #%u to '%s'\n", szWhat, this->uScreenID, pszFile)); 771 769 } 772 770 … … 956 954 this->Video.uDelayMs = RT_MS_1SEC / this->ScreenSettings.Video.ulFPS; 957 955 956 int rc; 957 958 958 #ifdef VBOX_WITH_LIBVPX 959 959 /* At the moment we only have VPX. */ 960 r eturninitVideoVPX();960 rc = initVideoVPX(); 961 961 #else 962 return VINF_SUCCESS; 963 #endif 962 rc = VINF_SUCCESS; 963 #endif 964 965 if (RT_FAILURE(rc)) 966 LogRel(("Recording: Failed to initialize video encoding (%Rrc)\n", rc)); 967 968 return rc; 964 969 } 965 970
Note:
See TracChangeset
for help on using the changeset viewer.