Projects
Games
avifile
avifile-gcc44.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avifile-gcc44.patch of Package avifile
Index: avifile-0.7-0.7.45/lib/aviplay/aviplay.cpp =================================================================== --- avifile-0.7-0.7.45.orig/lib/aviplay/aviplay.cpp +++ avifile-0.7-0.7.45/lib/aviplay/aviplay.cpp @@ -242,7 +242,7 @@ void AviPlayer::construct() //printf("VSTREAMTIME %f\n", m_pVideostream->GetTime()); // reading subtitles avm::string fn = m_Filename; - char* p = strrchr(fn.c_str(), '.'); + char* p = strrchr(const_cast<char*>(fn.c_str()), '.'); if (p) *p = 0; InitSubtitles(m_Subfilename.size() Index: avifile-0.7-0.7.45/lib/common/Args.cpp =================================================================== --- avifile-0.7-0.7.45.orig/lib/common/Args.cpp +++ avifile-0.7-0.7.45/lib/common/Args.cpp @@ -259,7 +259,7 @@ static void parse_suboptions(const Args: } for (unsigned i = 0; i < arr.size(); i++) { - char* par = strchr(arr[i], '='); + char* par = strchr(const_cast<char*>(arr[i].c_str()), '='); if (par) { *par = 0; @@ -335,7 +335,7 @@ static void parse_codec(const Args::Opti { for (unsigned j = 1; j < arr.size(); j++) { - char* p = strchr(arr[j].c_str(), '='); + char* p = strchr(const_cast<char*>(arr[j].c_str()), '='); int val = 0; bool valid = false; if (p) Index: avifile-0.7-0.7.45/lib/codeckeeper.cpp =================================================================== --- avifile-0.7-0.7.45.orig/lib/codeckeeper.cpp +++ avifile-0.7-0.7.45/lib/codeckeeper.cpp @@ -143,7 +143,7 @@ codec_plugin_t* plugin_open(const CodecI { char plgn[100]; strcpy(plgn, "avm_codec_plugin_"); - char* x = strrchr(name, '/'); + char* x = strrchr(const_cast<char*>(name), '/'); strncat(plgn, x + 1, 50); x = strchr(plgn, '.'); *x = 0; Index: avifile-0.7-0.7.45/player/playercontrol.cpp =================================================================== --- avifile-0.7-0.7.45.orig/player/playercontrol.cpp +++ avifile-0.7-0.7.45/player/playercontrol.cpp @@ -764,7 +764,7 @@ void PlayerControl::openSlot() return; avm::string path = RS("url", "."); - char* cut = strrchr(path.c_str(), '/'); + char* cut = strrchr(const_cast<char*>(path.c_str()), '/'); if (!cut) path = "./"; #if QT_VERSION <= 220
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.