[vlc-commits] medialibrary: Initialize video tracks width & height
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jun 21 13:55:08 CEST 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jun 20 10:31:49 2019 +0200| [0da5899bac0d2fff50f9685c08ae5fd927914645] | committer: Hugo Beauzée-Luyssen
medialibrary: Initialize video tracks width & height
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0da5899bac0d2fff50f9685c08ae5fd927914645
---
modules/misc/medialibrary/entities.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/misc/medialibrary/entities.cpp b/modules/misc/medialibrary/entities.cpp
index 0a68f8a1e1..ecbf9396cd 100644
--- a/modules/misc/medialibrary/entities.cpp
+++ b/modules/misc/medialibrary/entities.cpp
@@ -110,6 +110,8 @@ static bool convertTracks( const medialibrary::IMedia* inputMedia, vlc_ml_media_
return false;
output->i_type = VLC_ML_TRACK_TYPE_VIDEO;
output->i_bitrate = t->bitrate();
+ output->v.i_width = t->width();
+ output->v.i_height = t->height();
output->v.i_fpsNum = t->fpsNum();
output->v.i_fpsDen = t->fpsDen();
output->v.i_sarNum = t->sarNum();
More information about the vlc-commits
mailing list