Bug 233477

Summary: [GStreamer][WPE] Use WPE_SHELL_MEDIA_DISK_CACHE_PATH env var to customize media disk cache path
Product: WebKit Reporter: Enrique Ocaña <eocanha>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cgarcia, eric.carlson, ews-watchlist, glenn, gustavo, jer.noble, menard, philipj, pnormand, sergio, vjaquez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Enrique Ocaña 2021-11-24 11:46:06 PST
"/var/tmp" isn't always the best place to store the media download cache generated by GstDownloadBuffer on embedded platforms. Each of those downloads can hold up to a whole movie (Gigabytes) and "/var/tmp" is sometimes a memory based tmpfs.

Some way to control the cache path is needed. Metrological has been successfully using an environment variable for that purpose downstream since 2018. If that implementation is upstreamed, other WPE users can benefit from it.
Comment 1 Enrique Ocaña 2021-11-24 13:00:55 PST
Created attachment 445107 [details]
Patch
Comment 2 EWS 2021-11-25 04:34:12 PST
Committed r286166 (244549@main): <https://commits.webkit.org/244549@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 445107 [details].
Comment 3 Radar WebKit Bug Importer 2021-11-25 04:35:22 PST
<rdar://problem/85748939>