After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724373 - Queue2 truncates its temp file when pipeline is paused
Queue2 truncates its temp file when pipeline is paused
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal normal
: 1.2.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-14 18:20 UTC by Bastien Nocera
Modified: 2014-02-18 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2014-02-14 18:20:35 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...
Comment 1 Wim Taymans 2014-02-18 14:56:27 UTC
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