Changeset 22176 in vbox for trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp
- Timestamp:
- Aug 11, 2009 4:07:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp
r19844 r22176 654 654 mpStream = av_new_stream(mpFormatContext, 0); 655 655 AssertReturn(mpStream != 0, E_UNEXPECTED); 656 strncpy(mpFormatContext->filename, com::Utf8Str(mFileName) ,656 strncpy(mpFormatContext->filename, com::Utf8Str(mFileName).c_str(), 657 657 sizeof(mpFormatContext->filename)); 658 658 return S_OK; … … 671 671 { 672 672 Assert(mpFormatContext != 0); 673 AVOutputFormat *pOutFormat = guess_format(0, com::Utf8Str(mFileName) ,673 AVOutputFormat *pOutFormat = guess_format(0, com::Utf8Str(mFileName).c_str(), 674 674 0); 675 675 #ifdef VBOX_SHOW_AVAILABLE_FORMATS … … 789 789 Assert(mpFormatContext); 790 790 Assert(mpFormatContext->oformat); 791 strcpy(szFileName, com::Utf8Str(mFileName) );791 strcpy(szFileName, com::Utf8Str(mFileName).c_str()); 792 792 int rcUrlFopen = url_fopen(&mpFormatContext->pb, 793 793 szFileName, URL_WRONLY); … … 975 975 /* Work out the new file name - for some reason, we can't use 976 976 the com::Utf8Str() directly, but have to copy it */ 977 strcpy(oldName, com::Utf8Str(mFileName) );977 strcpy(oldName, com::Utf8Str(mFileName).c_str()); 978 978 int baseLen = strrchr(oldName, '.') - oldName; 979 979 if (baseLen == 0)
Note:
See TracChangeset
for help on using the changeset viewer.