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
Leonhard Saam
libvlcpp
Commits
012ad611
Commit
012ad611
authored
Jun 25, 2020
by
Hugo Beauzée-Luyssen
Browse files
Media: Fix use after free
parent
eae999f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/structures.hpp
View file @
012ad611
...
...
@@ -930,7 +930,7 @@ private:
///
/// \brief C++ Type wrapper for libvlc_media_slave_t
///
class
MediaSlave
:
private
libvlc_media_slave_t
class
MediaSlave
{
public:
///
...
...
@@ -942,26 +942,33 @@ public:
Audio
=
libvlc_media_slave_type_audio
};
MediaSlave
(
libvlc_media_slave_t
*
other
)
:
libvlc_media_slave_t
(
*
other
)
MediaSlave
(
libvlc_media_slave_t
*
m
)
:
m_type
(
static_cast
<
Type
>
(
m
->
i_type
)
)
,
m_priority
(
m
->
i_priority
)
,
m_uri
(
m
->
psz_uri
)
{
}
public:
Type
type
()
const
{
return
(
Type
)
i
_type
;
return
m
_type
;
}
unsigned
priority
()
const
{
return
i
_priority
;
return
m
_priority
;
}
std
::
string
uri
()
const
const
std
::
string
&
uri
()
const
{
return
psz
_uri
;
return
m
_uri
;
}
private:
Type
m_type
;
unsigned
int
m_priority
;
std
::
string
m_uri
;
};
...
...
Write
Preview
Supports
Markdown
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