Index: /trunk/src/VBox/Main/src-client/DisplayImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/DisplayImpl.cpp	(revision 46827)
+++ /trunk/src/VBox/Main/src-client/DisplayImpl.cpp	(revision 46828)
@@ -2723,4 +2723,8 @@
     hrc = pMachine->COMGETTER(VideoCaptureFile)(&strFile);
     AssertComRCReturn(hrc, VERR_COM_UNEXPECTED);
+    RTTIMESPEC ts;
+    RTTimeNow(&ts);
+    RTTIME time;
+    RTTimeExplode(&time, &ts);
     for (unsigned uScreen = 0; uScreen < mcMonitors; uScreen++)
     {
@@ -2751,8 +2755,4 @@
                 pszName = NULL;
 
-                static RTTIMESPEC ts = { 0 };
-                RTTimeNow(&ts);
-                RTTIME time;
-                RTTimeExplode(&time, &ts);
                 if (mcMonitors > 1)
                     rc = RTStrAPrintf(&pszName, "%s-%04d-%02u-%02uT%02u-%02u-%02u-%09uZ-%u%s",
