Commit 43fdf688 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

cppcx: Update to recent Parsed events changes

parent 58528789
......@@ -61,7 +61,7 @@ namespace libVLCX
public delegate void MediaListItemDeleted(Media^, int);
public delegate void MediaListWillDeleteItem(Media^, int);
public delegate void ParsedStatus(ParseStatus);
public delegate void ParsedChanged(ParsedStatus);
ref class EventManager;
private ref class EventRemover sealed
......@@ -467,12 +467,12 @@ namespace libVLCX
VLC::MediaEventManager& m_em;
public:
event ParsedStatus^ OnParsedStatus
event ParsedChanged^ OnParsedChanged
{
Windows::Foundation::EventRegistrationToken add(ParsedStatus^ handler)
Windows::Foundation::EventRegistrationToken add(ParsedChanged^ handler)
{
auto h = m_em.onParsedStatus([handler](VLC::Media::ParseStatus s) {
handler((ParseStatus)s);
auto h = m_em.onParsedChanged([handler](VLC::Media::ParsedStatus s) {
handler((ParsedStatus)s);
});
m_events.push_back(h);
return Windows::Foundation::EventRegistrationToken{ (int64)h };
......
......@@ -98,9 +98,9 @@ namespace libVLCX
m_media.parseWithOptions(static_cast<VLC::Media::ParseFlags>( flags ) );
}
ParseStatus Media::parseStatus()
ParsedStatus Media::parsedStatus()
{
return (ParseStatus)m_media.parseStatus();
return (ParsedStatus)m_media.parsedStatus();
}
Windows::Foundation::Collections::IVector<MediaTrack^>^ Media::tracks()
......
......@@ -99,12 +99,12 @@ namespace libVLCX
Interact = 0x08,
};
public enum class ParseStatus
public enum class ParsedStatus
{
Init = VLC::Media::ParseStatus::Init,
Skipped = VLC::Media::ParseStatus::Skipped,
Failed = VLC::Media::ParseStatus::Failed,
Done = VLC::Media::ParseStatus::Done,
Init = VLC::Media::ParsedStatus::Init,
Skipped = VLC::Media::ParsedStatus::Skipped,
Failed = VLC::Media::ParsedStatus::Failed,
Done = VLC::Media::ParsedStatus::Done,
};
public enum class FromType
......@@ -290,7 +290,7 @@ namespace libVLCX
*/
void Media::parseWithOptions(ParseFlags flags);
ParseStatus parseStatus();
ParsedStatus parsedStatus();
/**
* Get media descriptor's elementary streams description
......
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