[vlc-commits] qt: accept UNKNOWN media type while creating MLVideo objects
Pierre Lamot
git at videolan.org
Fri Jan 10 15:06:11 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Dec 19 11:27:41 2019 +0100| [aad72aa151974ad520ab393dd1dede601d47d9d3] | committer: Jean-Baptiste Kempf
qt: accept UNKNOWN media type while creating MLVideo objects
medialibrary now may return VLC_ML_MEDIA_TYPE_UNKNOWN for ts files.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aad72aa151974ad520ab393dd1dede601d47d9d3
---
modules/gui/qt/medialibrary/mlvideo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/medialibrary/mlvideo.cpp b/modules/gui/qt/medialibrary/mlvideo.cpp
index 431d0a67ec..280420b8db 100644
--- a/modules/gui/qt/medialibrary/mlvideo.cpp
+++ b/modules/gui/qt/medialibrary/mlvideo.cpp
@@ -36,7 +36,7 @@ MLVideo::MLVideo(vlc_medialibrary_t* ml, const vlc_ml_media_t* data, QObject* pa
vlc_ml_event_unregister_callback( m_ml, cb );
})
{
- assert( data->i_type == VLC_ML_MEDIA_TYPE_VIDEO );
+ assert( data->i_type == VLC_ML_MEDIA_TYPE_VIDEO || data->i_type == VLC_ML_MEDIA_TYPE_UNKNOWN );
int t_sec = data->i_duration / 1000;
int sec = t_sec % 60;
More information about the vlc-commits
mailing list