Bug 233477 - [GStreamer][WPE] Use WPE_SHELL_MEDIA_DISK_CACHE_PATH env var to customize media disk cache path
Summary: [GStreamer][WPE] Use WPE_SHELL_MEDIA_DISK_CACHE_PATH env var to customize med...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Enrique Ocaña
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-24 11:46 PST by Enrique Ocaña
Modified: 2021-11-25 04:35 PST (History)
13 users (show)

See Also:


Attachments
Patch (2.58 KB, patch)
2021-11-24 13:00 PST, Enrique Ocaña
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>