#include <tfile.h>
#include <tstring.h>
+#include <tdebug.h>
#include "fileref.h"
#include "asffile.h"
Tag *FileRef::tag() const
{
+ if(isNull()) {
+ debug("FileRef::tag() - Called without a valid file.");
+ return 0;
+ }
return d->file->tag();
}
AudioProperties *FileRef::audioProperties() const
{
+ if(isNull()) {
+ debug("FileRef::audioProperties() - Called without a valid file.");
+ return 0;
+ }
return d->file->audioProperties();
}
bool FileRef::save()
{
+ if(isNull()) {
+ debug("FileRef::save() - Called without a valid file.");
+ return false;
+ }
return d->file->save();
}