Changeset 75926 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Dec 3, 2018 9:52:50 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r75361 r75926 482 482 * @param pulFrameHeight may be updated with a desired frame height 483 483 * @param pulBitRate may be updated with a desired bit rate 484 * @param ppszFile Name may be updated with a desired file name484 * @param ppszFilename may be updated with a desired file name 485 485 */ 486 486 static void parse_environ(uint32_t *pulFrameWidth, uint32_t *pulFrameHeight, 487 uint32_t *pulBitRate, const char **ppszFile Name)487 uint32_t *pulBitRate, const char **ppszFilename) 488 488 { 489 489 const char *pszEnvTemp; … … 522 522 } 523 523 if ((pszEnvTemp = RTEnvGet("VBOX_RECORDFILE")) != 0) 524 *ppszFile Name = pszEnvTemp;524 *ppszFilename = pszEnvTemp; 525 525 } 526 526 #endif /* VBOX_WITH_RECORDING defined */ … … 631 631 uint32_t ulRecordVideoHeight = 600; 632 632 uint32_t ulRecordVideoRate = 300000; 633 char szRecordFile Name[RTPATH_MAX];634 const char *pszRecordFile NameTemplate = "VBox-%d.webm"; /* .webm container by default. */633 char szRecordFilename[RTPATH_MAX]; 634 const char *pszRecordFilenameTemplate = "VBox-%d.webm"; /* .webm container by default. */ 635 635 #endif /* VBOX_WITH_RECORDING */ 636 636 #ifdef RT_OS_WINDOWS … … 645 645 #ifdef VBOX_WITH_RECORDING 646 646 /* Parse the environment */ 647 parse_environ(&ulRecordVideoWidth, &ulRecordVideoHeight, &ulRecordVideoRate, &pszRecordFile NameTemplate);647 parse_environ(&ulRecordVideoWidth, &ulRecordVideoHeight, &ulRecordVideoRate, &pszRecordFilenameTemplate); 648 648 #endif 649 649 … … 791 791 break; 792 792 case 'f': 793 pszRecordFile NameTemplate = ValueUnion.psz;793 pszRecordFilenameTemplate = ValueUnion.psz; 794 794 break; 795 795 #endif /* VBOX_WITH_RECORDING defined */ … … 834 834 } 835 835 /* Make sure we only have %d or %u (or none) in the file name specified */ 836 char *pcPercent = (char*)strchr(pszRecordFile NameTemplate, '%');836 char *pcPercent = (char*)strchr(pszRecordFilenameTemplate, '%'); 837 837 if (pcPercent != 0 && *(pcPercent + 1) != 'd' && *(pcPercent + 1) != 'u') 838 838 { … … 846 846 return 1; 847 847 } 848 RTStrPrintf(&szRecordFile Name[0], RTPATH_MAX, pszRecordFileNameTemplate, RTProcSelf());848 RTStrPrintf(&szRecordFilename[0], RTPATH_MAX, pszRecordFilenameTemplate, RTProcSelf()); 849 849 #endif /* defined VBOX_WITH_RECORDING */ 850 850 … … 972 972 { 973 973 CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(Enabled)(TRUE)); 974 CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(File Name)(Bstr(szRecordFileName).raw()));974 CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(Filename)(Bstr(szRecordFilename).raw())); 975 975 CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(VideoWidth)(ulRecordVideoWidth)); 976 976 CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(VideoHeight)(ulRecordVideoHeight));
Note:
See TracChangeset
for help on using the changeset viewer.