Skip to content
Snippets Groups Projects
Commit aad72aa1 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf
Browse files

qt: accept UNKNOWN media type while creating MLVideo objects


  medialibrary now may return VLC_ML_MEDIA_TYPE_UNKNOWN for ts files.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8ece9f45
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment