gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9799: don't modify the requested siz


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9799: don't modify the requested size.
Date: Sat, 29 Nov 2008 12:32:24 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9799
committer: address@hidden
branch nick: rtmp
timestamp: Sat 2008-11-29 12:32:24 -0700
message:
  don't modify the requested size.
modified:
  libnet/diskstream.cpp
=== modified file 'libnet/diskstream.cpp'
--- a/libnet/diskstream.cpp     2008-11-29 01:09:23 +0000
+++ b/libnet/diskstream.cpp     2008-11-29 19:32:24 +0000
@@ -207,9 +207,10 @@
            // cached page is in memory
        }
 #endif
-       if (size <= _pagesize) {
-           size = _filesize;
-       }
+//     if (size <= _pagesize) {
+//         size = _filesize;
+//     }
+       
        _dataptr = static_cast<unsigned char *>(mmap(0, size,
                                                     PROT_READ, MAP_SHARED, 
_filefd, offset));
     } else {
@@ -584,7 +585,6 @@
   if (pos != string::npos) {
     string suffix = filespec.substr(pos+1, filespec.size());
     _filetype = FILETYPE_NONE;
-    log_debug("SUFFIX is: %s for filespec %s", suffix, filespec);
     if (suffix == "html") {
       _filetype = FILETYPE_HTML;
     } else if (suffix == "ogg") {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]