VirtualBox

Changeset 7292 in vbox


Ignore:
Timestamp:
Mar 5, 2008 9:51:22 AM (17 years ago)
Author:
vboxsync
Message:

Frontends/VBoxHeadless: try to fix a segfault on Debian

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r7280 r7292  
    694694                        display->RegisterExternalFramebuffer(pFramebuffer);
    695695                    }
     696                    else
     697                        LogError("Failed to initialise video capturing - make sure that the file format\n"
     698                                 "you wish to use is supported on your system\n", 1);
    696699                }
    697700            }
     
    699702        if (rc != S_OK)
    700703        {
    701             LogError ("Failed to load VBoxFFmpegFB shared library\n", 0);
     704            LogError ("Failed to set up video capturing\n", 1);
    702705            return -1;
    703706        }
  • trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp

    r7207 r7292  
    739739    AVOutputFormat *pOutFormat = mpFormatContext->oformat;
    740740    AVCodecContext *pCodecContext = mpStream->codec;
     741    AssertReturn(pCodecContext != 0, E_UNEXPECTED);
    741742    AVCodec *pCodec = avcodec_find_encoder(pOutFormat->video_codec);
    742743    AssertReturn(pCodec != 0, E_UNEXPECTED);
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