#include "pluginserver.h"
#include "preferences.h"
#include "samples.h"
-#include "stringfile.h"
#include "vframe.h"
-
-
+//suppress noref warning
+void *vorbis0_ov_callbacks[] = {
+ &OV_CALLBACKS_DEFAULT, &OV_CALLBACKS_NOCLOSE,
+ &OV_CALLBACKS_STREAMONLY, &OV_CALLBACKS_STREAMONLY_NOCLOSE,
+};
File::File()
{
buffer,
buffer_size);
delete [] buffer;
- delete [] string;
+ free(string);
//printf("File::open_file %d\n", __LINE__);
// Get the updated asset from the fork
// Reopen file with correct parser and get header.
if(file->open_file(rd, wr)) {
- delete file;
+ delete file; file = 0;
return FILE_NOT_FOUND;
}
if( rd ) {
// one frame image file, no specific length
if( !this->asset->audio_data && this->asset->video_data &&
- this->asset->video_length == 1 )
+ this->asset->video_length <= 1 )
this->asset->video_length = -1;
}
case FILE_VMPEG: return "m2v";
case FILE_VORBIS: return "ogg";
case FILE_WAV: return "wav";
- case FILE_FFMPEG: return "media";
+ case FILE_FFMPEG: return "ffmpg";
}
return 0;
}