VLCMediaPlayerTrack: setSelected: refactoring to optimize processing

VLCMediaPlayerTrack: Refactored to optimize setSelected: handling.

change point

  • Modified to get selected tracklist from libvlc_media_player_get_tracklist
  • Set the capacity when initializing the temporary variable NSMutableArray<NSString *>
  • Eliminated the conditional judgment in the for loop
  • Acquire ownTrackId from a local variable instead of via a property

This MR is a combination of optimization and code readability.

best regards.

Edited by Hank Anderson

Merge request reports