VirtualBox

Changeset 74909 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 18, 2018 8:58:13 AM (6 years ago)
Author:
vboxsync
Message:

VideoRec/Main: Use RT_MS_1SEC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r74908 r74909  
    938938
    939939        if (RT_SUCCESS(rc)) /* Wait for the thread to start. */
    940             rc = RTThreadUserWait(pCtx->Thread, 30 * 1000 /* 30s timeout */);
     940            rc = RTThreadUserWait(pCtx->Thread, 30 * RT_MS_1SEC /* 30s timeout */);
    941941
    942942        if (RT_SUCCESS(rc))
     
    12901290    PVIDEORECVIDEOCODEC pVC = &pStream->Video.Codec;
    12911291
    1292     pStream->Video.uDelayMs = 1000 / pCfg->Video.uFPS;
     1292    pStream->Video.uDelayMs = RT_MS_1SEC / pCfg->Video.uFPS;
    12931293
    12941294    switch (pStream->enmDst)
     
    15121512
    15131513    if (   pCfg->uMaxTimeS
    1514         && tsNowMs >= pCtx->tsStartMs + (pCfg->uMaxTimeS * 1000))
     1514        && tsNowMs >= pCtx->tsStartMs + (pCfg->uMaxTimeS * RT_MS_1SEC))
    15151515    {
    15161516        return true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette