Changeset 49039 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Oct 10, 2013 6:27:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r47905 r49039 2739 2739 { 2740 2740 char *pszAbsPath = RTPathAbsDup(com::Utf8Str(strFile).c_str()); 2741 char *psz Ext = RTPathExt(pszAbsPath);2742 if (psz Ext)2743 psz Ext = RTStrDup(pszExt);2744 RTPathStrip Ext(pszAbsPath);2741 char *pszSuff = RTPathSuffix(pszAbsPath); 2742 if (pszSuff) 2743 pszSuff = RTStrDup(pszSuff); 2744 RTPathStripSuffix(pszAbsPath); 2745 2745 if (!pszAbsPath) 2746 2746 rc = VERR_INVALID_PARAMETER; 2747 if (!psz Ext)2748 psz Ext= RTStrDup(".webm");2747 if (!pszSuff) 2748 pszSuff = RTStrDup(".webm"); 2749 2749 char *pszName = NULL; 2750 2750 if (RT_SUCCESS(rc)) 2751 2751 { 2752 2752 if (mcMonitors > 1) 2753 rc = RTStrAPrintf(&pszName, "%s-%u%s", pszAbsPath, uScreen+1, psz Ext);2753 rc = RTStrAPrintf(&pszName, "%s-%u%s", pszAbsPath, uScreen+1, pszSuff); 2754 2754 else 2755 rc = RTStrAPrintf(&pszName, "%s%s", pszAbsPath, psz Ext);2755 rc = RTStrAPrintf(&pszName, "%s%s", pszAbsPath, pszSuff); 2756 2756 } 2757 2757 if (RT_SUCCESS(rc)) … … 2768 2768 pszAbsPath, time.i32Year, time.u8Month, time.u8MonthDay, 2769 2769 time.u8Hour, time.u8Minute, time.u8Second, time.u32Nanosecond, 2770 uScreen+1, psz Ext);2770 uScreen+1, pszSuff); 2771 2771 else 2772 2772 rc = RTStrAPrintf(&pszName, "%s-%04d-%02u-%02uT%02u-%02u-%02u-%09uZ%s", 2773 2773 pszAbsPath, time.i32Year, time.u8Month, time.u8MonthDay, 2774 2774 time.u8Hour, time.u8Minute, time.u8Second, time.u32Nanosecond, 2775 psz Ext);2775 pszSuff); 2776 2776 if (RT_SUCCESS(rc)) 2777 2777 rc = VideoRecStrmInit(mpVideoRecCtx, uScreen, … … 2786 2786 LogRel(("Failed to initialize video recording context #%u (%Rrc)!\n", uScreen, rc)); 2787 2787 RTStrFree(pszName); 2788 RTStrFree(psz Ext);2788 RTStrFree(pszSuff); 2789 2789 RTStrFree(pszAbsPath); 2790 2790 }
Note:
See TracChangeset
for help on using the changeset viewer.