Media: handle PR review remarks
This commit is contained in:
parent
bae810b190
commit
c89d9dd8e6
6 changed files with 8 additions and 9 deletions
|
|
@ -59,7 +59,7 @@ class RustMediaLoader(
|
|||
}
|
||||
}
|
||||
|
||||
override suspend fun loadMediaFile(source: MediaSource, mimeType: String?): Result<MediaFile> =
|
||||
override suspend fun downloadMediaFile(source: MediaSource, mimeType: String?): Result<MediaFile> =
|
||||
withContext(dispatchers.io) {
|
||||
runCatching {
|
||||
source.toRustMediaSource().use { mediaSource ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue