-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(media): Make sure that local URIs only try to get media from the cache and ignore requested dimensions #4329
base: main
Are you sure you want to change the base?
Conversation
…its key Using a `MediaFormat::Thumbnail(_)` with the thumbnail's dimensions means that we request "a server-generated thumbnail of the client-generated thumbnail with the same dimensions as the client-generated thumbnail". A simpler way of getting the same result is to get the client-generated thumbnail directly, so we can just use `MediaFormat::File`. This simplifies the data passed around in the send queue Signed-off-by: Kévin Commaille <[email protected]>
…equest to Media Signed-off-by: Kévin Commaille <[email protected]>
…cache and ignore requested dimensions Signed-off-by: Kévin Commaille <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4329 +/- ##
==========================================
+ Coverage 85.05% 85.09% +0.04%
==========================================
Files 275 275
Lines 30309 30385 +76
==========================================
+ Hits 25780 25857 +77
+ Misses 4529 4528 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; I haven't looked into it too much, but since this changes the format of the DependentRequestKins, it needs a migration (that can be at least a plain removal of pending dependent events). I'll take a deeper look later.
Oh you are right, I forgot about that. Looking more into it, it seems complicated to migrate the cached media though. We would need the list of migrated URIs from the |
Signed-off-by: Kévin Commaille <[email protected]>
That way, the format that was used to store it does not matter. Signed-off-by: Kévin Commaille <[email protected]>
…ange Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Migrations added. |
Signed-off-by: Kévin Commaille <[email protected]>
Avoids a tricky API where the users need to make exactly the right media request to get the local file in cache, and avoids to make a request over the network when we know that the file should only be found locally.
cc @bnjbvr, I don't think this is exactly what you had in mind but it does the job.