GNOME Bugzilla – Bug 724373
Queue2 truncates its temp file when pipeline is paused
Last modified: 2014-02-18 14:56:27 UTC
To implement the "Make Available Offline" menu item in Totem, after the stream's download buffer is full (so the whole file is now cached to disk), I create a hard link to it in a separate directory, so the file is kept across runs. I can verify that both the buffer cache, and my linked copy are of reasonable sizes, and type. When exiting, or closing the file (eg. setting playbin to a READY state), queue2 seems to truncate the file before removing it. My linked copy is still there, but now it's zero-sized...
commit 252aa44887a40f4fc3262331e156c897f8edc034 Author: Wim Taymans <wtaymans@redhat.com> Date: Tue Feb 18 15:46:32 2014 +0100 queue2: don't truncate the temp file on shutdown We want to keep the downloaded file untruncated so that we can use it again later. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=724373