Commit 61b49ae9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMediaPlayer: fixed use of deprecated API

parent 168999a1
...@@ -302,7 +302,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s ...@@ -302,7 +302,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
[tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]]; [tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]];
tracks = tracks->p_next; tracks = tracks->p_next;
} }
libvlc_track_description_release(tracks); libvlc_track_description_list_release(tracks);
return [NSArray arrayWithArray: tempArray]; return [NSArray arrayWithArray: tempArray];
} }
...@@ -339,7 +339,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s ...@@ -339,7 +339,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
[tempArray addObject:[NSString stringWithUTF8String:currentTrack->psz_name]]; [tempArray addObject:[NSString stringWithUTF8String:currentTrack->psz_name]];
currentTrack = currentTrack->p_next; currentTrack = currentTrack->p_next;
} }
libvlc_track_description_release(currentTrack); libvlc_track_description_list_release(currentTrack);
return [NSArray arrayWithArray: tempArray]; return [NSArray arrayWithArray: tempArray];
} }
...@@ -472,7 +472,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s ...@@ -472,7 +472,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
[tempArray addObject:[NSString stringWithUTF8String:tracks->psz_name]]; [tempArray addObject:[NSString stringWithUTF8String:tracks->psz_name]];
tracks = tracks->p_next; tracks = tracks->p_next;
} }
libvlc_track_description_release(tracks); libvlc_track_description_list_release(tracks);
return [NSArray arrayWithArray:tempArray]; return [NSArray arrayWithArray:tempArray];
} }
...@@ -509,7 +509,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s ...@@ -509,7 +509,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
[tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]]; [tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]];
tracks = tracks->p_next; tracks = tracks->p_next;
} }
libvlc_track_description_release(tracks); libvlc_track_description_list_release(tracks);
return [NSArray arrayWithArray: tempArray]; return [NSArray arrayWithArray: tempArray];
} }
...@@ -544,7 +544,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s ...@@ -544,7 +544,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
[tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]]; [tempArray addObject:[NSString stringWithUTF8String: tracks->psz_name]];
tracks = tracks->p_next; tracks = tracks->p_next;
} }
libvlc_track_description_release(tracks); libvlc_track_description_list_release(tracks);
return [NSArray arrayWithArray: tempArray]; return [NSArray arrayWithArray: tempArray];
} }
......
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