Added acceptance of .ogv extensions in xine-lib plugin

This commit is contained in:
Robert Osfield
2008-09-02 16:13:54 +00:00
parent 08883dbf6c
commit d2e29efcd9
2 changed files with 4 additions and 2 deletions

View File

@@ -243,6 +243,7 @@ Registry::Registry()
#if defined(USE_XINE)
addFileExtensionAlias("mov", "xine");
addFileExtensionAlias("mpg", "xine");
addFileExtensionAlias("ogv", "xine");
addFileExtensionAlias("mpv", "xine");
addFileExtensionAlias("dv", "xine");
addFileExtensionAlias("avi", "xine");

View File

@@ -313,6 +313,7 @@ class ReaderWriterXine : public osgDB::ReaderWriter
{
supportsExtension("avi","");
supportsExtension("db","");
supportsExtension("ogv","");
supportsExtension("flv","");
supportsExtension("mov","");
supportsExtension("mpg","Mpeg movie format");
@@ -353,8 +354,8 @@ class ReaderWriterXine : public osgDB::ReaderWriter
std::string fileName;
if (ext=="xine")
{
fileName = osgDB::getNameLessExtension(file);
osg::notify(osg::NOTICE)<<"Xine stipped filename = "<<fileName;
fileName = osgDB::findDataFile( osgDB::getNameLessExtension(file), options);
osg::notify(osg::INFO)<<"Xine stipped filename = "<<fileName<<std::endl;
}
else
{