Skip to content
Snippets Groups Projects
Commit aca01ee3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Media: Expose new libvlc_media_get_stat API

parent 2a730841
No related branches found
No related tags found
1 merge request!17Media: Expose new libvlc_media_get_stat API
Pipeline #167914 passed with stage
in 1 minute and 8 seconds
......@@ -807,6 +807,18 @@ public:
libvlc_media_thumbnail_request_destroy( request );
}
enum class Stat : uint8_t
{
Mtime = libvlc_media_stat_mtime,
Size = libvlc_media_stat_size,
};
std::pair<bool, uint64_t> stat( Stat s )
{
uint64_t value = 0;
auto res = libvlc_media_get_stat( *this, static_cast<uint8_t>( s ), &value ) == 1;
return std::make_pair( res, value );
}
#endif
......
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