segments[i] = new Segment();
segments[i]->start = totalLength;
- fseek(file, 0, SEEK_END);
+ fseeko(file, 0, SEEK_END);
totalLength += ftello(file);
totalFrames = indexFile->Last();
log->log("RecPlayer", Log::DEBUG, "File %i found, totalLength now %llu, numFrames = %lu", i, totalLength, totalFrames);
log->log("RRProc", Log::DEBUG, "viddir: %s", VideoDirectory);
#endif
- char* newPathConv = new char[strlen(newPath)+1];
+ char* newPathConv = (char*)malloc(strlen(newPath)+1);
strcpy(newPathConv, newPath);
- ExchangeChars(newPathConv, true);
+ newPathConv = ExchangeChars(newPathConv, true);
log->log("RRProc", Log::DEBUG, "EC: %s", newPathConv);
#if APIVERSNUM > 20101
log->log("RRProc", Log::DEBUG, "l10: %i", strlen(VideoDirectory) + strlen(newPathConv) + strlen(titleDirName) + 1);
sprintf(newContainer, "%s%s%s", VideoDirectory, newPathConv, titleDirName);
#endif
- delete[] newPathConv;
+ free(newPathConv);
log->log("RRProc", Log::DEBUG, "%s", newContainer);