VirtualBox

Changeset 41956 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 28, 2012 11:15:26 AM (13 years ago)
Author:
vboxsync
Message:

VBoxHeadless: Corrected the C define "VBOX_FFMPEG" to more meaningful one "VBOX_WITH_VIDEO_REC" .

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk

    r41477 r41956  
    4747#
    4848VBoxHeadless_TEMPLATE  := $(if $(VBOX_WITH_HARDENING),VBOXMAINCLIENTDLL,VBOXMAINCLIENTEXE)
    49 VBoxHeadless_DEFS       = VBOX_FFMPEG
     49VBoxHeadless_DEFS      += \
     50                 VBOX_WITH_VIDEO_REC
    5051VBoxHeadless_SOURCES    = VBoxHeadless.cpp
    5152VBoxHeadless_SOURCES  += Framebuffer.cpp
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r41100 r41956  
    4343#include <VBox/VBoxVideo.h>
    4444
    45 #ifdef VBOX_FFMPEG
     45#ifdef VBOX_WITH_VIDEO_REC ||
    4646#include <cstdlib>
    4747#include <cerrno>
     
    471471             "                                         \"TCP/Address\" - interface IP the VRDE server\n"
    472472             "                                         will bind to\n"
    473 #ifdef VBOX_FFMPEG
     473#ifdef VBOX_WITH_VIDEO_REC
    474474             "   -c, -capture, --capture               Record the VM screen output to a file\n"
    475475             "   -w, --width                           Frame width when recording\n"
     
    483483}
    484484
    485 #ifdef VBOX_FFMPEG
     485#ifdef VBOX_WITH_VIDEO_REC
    486486/**
    487487 * Parse the environment for variables which can influence the FFMPEG settings.
     
    527527        *ppszFileName = pszEnvTemp;
    528528}
    529 #endif /* VBOX_FFMPEG defined */
     529#endif /* VBOX_WITH_VIDEO_REC defined */
    530530
    531531#ifdef RT_OS_WINDOWS
     
    548548    unsigned fPATM  = ~0U;
    549549    unsigned fCSAM  = ~0U;
    550 #ifdef VBOX_FFMPEG
     550#ifdef VBOX_WITH_VIDEO_REC
    551551    unsigned fFFMPEG = 0;
    552552    unsigned long ulFrameWidth = 800;
     
    555555    char pszMPEGFile[RTPATH_MAX];
    556556    const char *pszFileNameParam = "VBox-%d.vob";
    557 #endif /* VBOX_FFMPEG */
     557#endif /* VBOX_WITH_VIDEO_REC */
    558558
    559559    LogFlow (("VBoxHeadless STARTED.\n"));
     
    562562              "All rights reserved.\n\n");
    563563
    564 #ifdef VBOX_FFMPEG
     564#ifdef VBOX_WITH_VIDEO_REC
    565565    /* Parse the environment */
    566566    parse_environ(&ulFrameWidth, &ulFrameHeight, &ulBitRate, &pszFileNameParam);
     
    610610        { "-nocsam", OPT_NO_CSAM, 0 },
    611611        { "--nocsam", OPT_NO_CSAM, 0 },
    612 #ifdef VBOX_FFMPEG
     612#ifdef VBOX_WITH_VIDEO_REC
    613613        { "-capture", 'c', 0 },
    614614        { "--capture", 'c', 0 },
     
    617617        { "--bitrate", 'r', RTGETOPT_REQ_UINT32 },
    618618        { "--filename", 'f', RTGETOPT_REQ_STRING },
    619 #endif /* VBOX_FFMPEG defined */
     619#endif /* VBOX_WITH_VIDEO_REC defined */
    620620        { "-comment", OPT_COMMENT, RTGETOPT_REQ_STRING },
    621621        { "--comment", OPT_COMMENT, RTGETOPT_REQ_STRING }
     
    677677                fCSAM = false;
    678678                break;
    679 #ifdef VBOX_FFMPEG
     679#ifdef VBOX_WITH_VIDEO_REC
    680680            case 'c':
    681681                fFFMPEG = true;
     
    690690                pszFileNameParam = ValueUnion.psz;
    691691                break;
    692 #endif /* VBOX_FFMPEG defined */
     692#endif /* VBOX_WITH_VIDEO_REC defined */
    693693            case 'h':
    694 #ifdef VBOX_FFMPEG
     694#ifdef VBOX_WITH_VIDEO_REC
    695695                if ((GetState.pDef->fFlags & RTGETOPT_REQ_MASK) != RTGETOPT_REQ_NOTHING)
    696696                {
     
    714714    }
    715715
    716 #ifdef VBOX_FFMPEG
     716#ifdef VBOX_WITH_VIDEO_REC
    717717    if (ulFrameWidth < 512 || ulFrameWidth > 2048 || ulFrameWidth % 2)
    718718    {
     
    744744    }
    745745    RTStrPrintf(&pszMPEGFile[0], RTPATH_MAX, pszFileNameParam, RTProcSelf());
    746 #endif /* defined VBOX_FFMPEG */
     746#endif /* defined VBOX_WITH_VIDEO_REC */
    747747
    748748    if (!pcszNameOrUUID)
     
    840840        CHECK_ERROR_BREAK(console, COMGETTER(Display)(display.asOutParam()));
    841841
    842 #ifdef VBOX_FFMPEG
     842#ifdef VBOX_WITH_VIDEO_REC
    843843        IFramebuffer *pFramebuffer = 0;
    844844        RTLDRMOD hLdrFFmpegFB;
     
    851851            RTERRINFOSTATIC ErrInfo;
    852852
    853             Log2(("VBoxHeadless: loading VBoxFFmpegFB shared library\n"));
     853            Log2(("VBoxHeadless: loading VBoxFFmpegFB and libvpx shared library\n"));
    854854            RTErrInfoInitStatic(&ErrInfo);
    855855            rrc = SUPR3HardenedLdrLoadAppPriv("VBoxFFmpegFB", &hLdrFFmpegFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core);
     
    887887            break;
    888888        }
    889 #endif /* defined(VBOX_FFMPEG) */
     889#endif /* defined(VBOX_WITH_VIDEO_REC) */
    890890        ULONG cMonitors = 1;
    891891        machine->COMGETTER(MonitorCount)(&cMonitors);
     
    894894        for (uScreenId = 0; uScreenId < cMonitors; uScreenId++)
    895895        {
    896 # ifdef VBOX_FFMPEG
     896# ifdef VBOX_WITH_VIDEO_REC
    897897            if (fFFMPEG && uScreenId == 0)
    898898            {
     
    11791179        Log(("VBoxHeadless: event loop has terminated...\n"));
    11801180
    1181 #ifdef VBOX_FFMPEG
     1181#ifdef VBOX_WITH_VIDEO_REC
    11821182        if (pFramebuffer)
    11831183        {
     
    11861186            pFramebuffer = NULL;
    11871187        }
    1188 #endif /* defined(VBOX_FFMPEG) */
     1188#endif /* defined(VBOX_WITH_VIDEO_REC) */
    11891189
    11901190        /* we don't have to disable VRDE here because we don't save the settings of the VM */
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