Browse Source

minor notify fixes

David Rose 14 years ago
parent
commit
6e7efefd22
1 changed files with 11 additions and 2 deletions
  1. 11 2
      panda/src/movies/ffmpegVirtualFile.cxx

+ 11 - 2
panda/src/movies/ffmpegVirtualFile.cxx

@@ -77,6 +77,11 @@ bool FfmpegVirtualFile::
 open_vfs(const Filename &filename) {
   close();
 
+  if (ffmpeg_cat.is_debug()) {
+    ffmpeg_cat.debug()
+      << "ffmpeg open_vfs(" << filename << ")\n";
+  }
+
   VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
   Filename fname = filename;
   fname.set_binary();
@@ -135,6 +140,10 @@ open_subfile(const SubfileInfo &info) {
   if (!fname.open_read(_file_in)) {
     return false;
   }
+  if (ffmpeg_cat.is_debug()) {
+    ffmpeg_cat.debug()
+      << "ffmpeg open_subfile(" << fname << ")\n";
+  }
 
   _in = &_file_in;
   _owns_in = false;
@@ -289,7 +298,7 @@ pandavfs_read(URLContext *h, unsigned char *buf, int size) {
 ////////////////////////////////////////////////////////////////////
 int FfmpegVirtualFile::
 pandavfs_write(URLContext *h, const unsigned char *buf, int size) {
-  movies_cat.warning()
+  ffmpeg_cat.warning()
     << "ffmpeg is trying to write to the VFS.\n";
   return -1;
 }
@@ -323,7 +332,7 @@ pandavfs_seek(URLContext *h, int64_t pos, int whence) {
     return self->_size; 
 
   default:
-    movies_cat.error() 
+    ffmpeg_cat.error() 
       << "Illegal parameter to seek in ffmpegVirtualFile\n";
     in->clear();
     return -1;