From 6e7efefd2291d67c629b153dff970e98161a5c9d Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 16 Nov 2011 03:26:02 +0000 Subject: [PATCH] minor notify fixes --- panda/src/movies/ffmpegVirtualFile.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/panda/src/movies/ffmpegVirtualFile.cxx b/panda/src/movies/ffmpegVirtualFile.cxx index 8dd6487cad..88f7cd3786 100644 --- a/panda/src/movies/ffmpegVirtualFile.cxx +++ b/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;