[Android] Fix typo in VlcTrackImpl for vlc3
Duncan McNamara
git at videolan.org
Tue Nov 26 14:14:46 UTC 2024
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Tue Nov 26 15:04:47 2024 +0100| [f621ed7aebe968520964241d8531fee3af4fc6bd] | committer: Duncan McNamara
Fix typo in VlcTrackImpl for vlc3
Fixes #3112
> https://code.videolan.org/videolan/vlc-android/commit/f621ed7aebe968520964241d8531fee3af4fc6bd
---
.../vlc-android/vlc3/src/org/videolan/vlc/VlcTrackImpl.kt | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/application/vlc-android/vlc3/src/org/videolan/vlc/VlcTrackImpl.kt b/application/vlc-android/vlc3/src/org/videolan/vlc/VlcTrackImpl.kt
index 53c1c1de84..490f603ed9 100644
--- a/application/vlc-android/vlc3/src/org/videolan/vlc/VlcTrackImpl.kt
+++ b/application/vlc-android/vlc3/src/org/videolan/vlc/VlcTrackImpl.kt
@@ -41,10 +41,10 @@ class VlcTrackImpl : VlcTrack {
override fun getId() = mediaplayerTrack?.id?.toString() ?: mediaTrack!!.id.toString()
override fun getName() = mediaplayerTrack?.name ?: mediaTrack!!.description
- override fun getWidth() = (mediaplayerTrack as? IMedia.VideoTrack)?.width ?: 0
- override fun getHeight() = (mediaplayerTrack as? IMedia.VideoTrack)?.height ?: 0
- override fun getProjection() = (mediaplayerTrack as? IMedia.VideoTrack)?.projection ?: 0 //todo good default value?
- override fun getFrameRateDen() = (mediaplayerTrack as? IMedia.VideoTrack)?.frameRateDen ?: 0 //todo good default value?
- override fun getFrameRateNum() = (mediaplayerTrack as? IMedia.VideoTrack)?.frameRateNum ?: 0 //todo good default value?
+ override fun getWidth() = (mediaTrack as? IMedia.VideoTrack)?.width ?: 0
+ override fun getHeight() = (mediaTrack as? IMedia.VideoTrack)?.height ?: 0
+ override fun getProjection() = (mediaTrack as? IMedia.VideoTrack)?.projection ?: 0 //todo good default value?
+ override fun getFrameRateDen() = (mediaTrack as? IMedia.VideoTrack)?.frameRateDen ?: 0 //todo good default value?
+ override fun getFrameRateNum() = (mediaTrack as? IMedia.VideoTrack)?.frameRateNum ?: 0 //todo good default value?
}
\ No newline at end of file
More information about the Android
mailing list