Skip to content
Snippets Groups Projects
Commit edeb35dd authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: Media: Update API

ParsedStatus and ParsedChanged are now merged
parent 60a9c7f3
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ static const libvlc_event_type_t m_events[] = {
libvlc_MediaDurationChanged,
libvlc_MediaStateChanged,
libvlc_MediaParsedChanged,
libvlc_MediaParsedStatus,
libvlc_MediaSubItemTreeAdded,
-1,
};
......@@ -53,9 +52,9 @@ Media_event_cb(vlcjni_object *p_obj, const libvlc_event_t *p_ev,
pthread_mutex_lock(&p_sys->lock);
if (p_ev->type == libvlc_MediaParsedStatus)
if (p_ev->type == libvlc_MediaParsedChanged)
{
/* no need to send libvlc_MediaParsedStatus when parsing is synchronous */
/* no need to send libvlc_MediaParsedChanged when parsing is synchronous */
if (p_sys->b_parsing_sync)
b_dispatch = false;
......@@ -89,8 +88,8 @@ Media_event_cb(vlcjni_object *p_obj, const libvlc_event_t *p_ev,
break;
case libvlc_MediaStateChanged:
p_java_event->arg1 = p_ev->u.media_state_changed.new_state;
case libvlc_MediaParsedStatus:
p_java_event->arg1 = p_ev->u.media_parsed_status.new_status;
case libvlc_MediaParsedChanged:
p_java_event->arg1 = p_ev->u.media_parsed_changed.new_status;
}
p_java_event->type = p_ev->type;
return true;
......
......@@ -40,7 +40,6 @@ public class Media extends VLCObject<Media.Event> {
//public static final int Freed = 4;
public static final int StateChanged = 5;
public static final int SubItemTreeAdded = 6;
public static final int ParsedStatus = 7;
protected Event(int type) {
super(type);
......@@ -414,9 +413,6 @@ public class Media extends VLCObject<Media.Event> {
mDuration = -1;
break;
case Event.ParsedChanged:
postParse();
break;
case Event.ParsedStatus:
postParse();
return new Event(eventType, arg1);
case Event.StateChanged:
......
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