Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
burak avan
libvlcpp
Commits
aca01ee3
Commit
aca01ee3
authored
Dec 10, 2021
by
Hugo Beauzée-Luyssen
Browse files
Media: Expose new libvlc_media_get_stat API
parent
2a730841
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/Media.hpp
View file @
aca01ee3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment