uridecodebin: Use cache dir for download buffering
authorBastien Nocera <hadess@hadess.net>
Thu, 31 May 2012 10:29:44 +0000 (11:29 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 31 May 2012 10:54:49 +0000 (12:54 +0200)
Instead of the temp directory. See:
http://0pointer.de/blog/projects/tmp.html

https://bugzilla.gnome.org/show_bug.cgi?id=677181

gst/playback/gsturidecodebin.c

index ce61b86..3054899 100644 (file)
@@ -1810,7 +1810,7 @@ type_found (GstElement * typefind, guint probability,
     gchar *temp_template, *filename;
     const gchar *tmp_dir, *prgname;
 
-    tmp_dir = g_get_tmp_dir ();
+    tmp_dir = g_get_user_cache_dir ();
     prgname = g_get_prgname ();
     if (prgname == NULL)
       prgname = "GStreamer";