media/libmkv/bock_fix.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 diff --git a/third_party/libmkv/WebMElement.h b/third_party/libmkv/WebMElement.h
     2 index d9ad0a0..717e739 100644
     3 --- a/third_party/libmkv/WebMElement.h
     4 +++ b/third_party/libmkv/WebMElement.h
     5 @@ -10,11 +10,6 @@
     6  #ifndef MKV_CONTEXT_HPP
     7  #define MKV_CONTEXT_HPP 1
     9 -void writeSimpleBock(EbmlGlobal *ebml, unsigned char trackNumber, unsigned short timeCode,
    10 -                     int isKeyframe, unsigned char lacingFlag, int  discardable,
    11 -                     unsigned char *data, unsigned long dataLength);
    12 -
    13 -
    14  // these are helper functions
    15  void writeHeader(EbmlGlobal *ebml);
    16  void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration);

mercurial