Commit 4e209373 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

structures: Add missing TrackDescription method implementations

parent 4f6e37df
......@@ -312,11 +312,23 @@ class AudioOutputDeviceDescription
class TrackDescription
{
public:
int id() const;
const std::string& name() const;
int id() const
{
return m_id;
}
const std::string& name() const
{
return m_name;
}
private:
explicit TrackDescription( libvlc_track_description_t* c );
explicit TrackDescription( libvlc_track_description_t* c )
: m_id( c->i_id )
{
if ( c->psz_name != nullptr )
m_name = c->psz_name;
}
int m_id;
std::string m_name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment