Skip to content

Commit

Permalink
VLCMediaPlayer: VLCMediaPlayerState: Remove ESAdded/Deleted
Browse files Browse the repository at this point in the history
ESAdded/Delete are not VLCMediaPlayer states.
  • Loading branch information
Mikanbu authored and alexandre-janniaux committed Feb 20, 2023
1 parent b19c0a3 commit 4719f69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Headers/Public/VLCMediaPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
VLCMediaPlayerStateError, ///< Player has generated an error
VLCMediaPlayerStatePlaying, ///< Stream is playing
VLCMediaPlayerStatePaused, ///< Stream is paused
VLCMediaPlayerStateESAdded, ///< Elementary Stream added
VLCMediaPlayerStateESDeleted, ///< Elementary Stream deleted
VLCMediaPlayerStateLengthChanged ///< Length changed
};

Expand Down
8 changes: 0 additions & 8 deletions Sources/VLCMediaPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
[VLCMediaPlayerStateError] = @"VLCMediaPlayerStateError",
[VLCMediaPlayerStatePlaying] = @"VLCMediaPlayerStatePlaying",
[VLCMediaPlayerStatePaused] = @"VLCMediaPlayerStatePaused",
[VLCMediaPlayerStateESAdded] = @"VLCMediaPlayerStateESAdded"
};
return stateToStrings[state];
}
Expand Down Expand Up @@ -173,12 +172,6 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
case libvlc_MediaPlayerOpening:
newState = VLCMediaPlayerStateOpening;
break;
case libvlc_MediaPlayerESAdded:
newState = VLCMediaPlayerStateESAdded;
break;
case libvlc_MediaPlayerESDeleted:
newState = VLCMediaPlayerStateESDeleted;
break;
case libvlc_MediaPlayerLengthChanged:
newState = VLCMediaPlayerStateLengthChanged;
break;
Expand Down Expand Up @@ -1280,7 +1273,6 @@ - (instancetype)initWithDrawable:(id)aDrawable options:(NSArray *)options
{ libvlc_MediaPlayerStopped, HandleMediaInstanceStateChanged },
{ libvlc_MediaPlayerOpening, HandleMediaInstanceStateChanged },
{ libvlc_MediaPlayerBuffering, HandleMediaInstanceStateChanged },
{ libvlc_MediaPlayerESAdded, HandleMediaInstanceStateChanged },

{ libvlc_MediaPlayerMediaChanged, HandleMediaPlayerMediaChanged },

Expand Down

0 comments on commit 4719f69

Please sign in to comment.