[vlc-devel] [PATCH 1/3] libvlc: rename TitleChanged to TitleSelectionChanged
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Tue Apr 28 14:53:33 CEST 2020
On Tue, Apr 28, 2020, at 1:46 PM, Thomas Guillem wrote:
> In 3.0, this event was sent for a new selection and for a new list.
>
> RFC: Even if 4.0 break the API/ABI, I would prefer to not change the event enum
> order. Indeed, libvlc is used by some languages that don't have enum and that
> have to use a const int value for each of these enums.
> ---
> include/vlc/libvlc_events.h | 5 +++--
> lib/media_player.c | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/include/vlc/libvlc_events.h b/include/vlc/libvlc_events.h
> index 62a81104da..c901c8079d 100644
> --- a/include/vlc/libvlc_events.h
> +++ b/include/vlc/libvlc_events.h
> @@ -104,7 +104,7 @@ enum libvlc_event_e {
> libvlc_MediaPlayerPositionChanged,
> libvlc_MediaPlayerSeekableChanged,
> libvlc_MediaPlayerPausableChanged,
> - libvlc_MediaPlayerTitleChanged,
> + libvlc_MediaPlayerDeprecated01, /* libvlc_MediaPlayerTitleChanged */
> libvlc_MediaPlayerSnapshotTaken,
> libvlc_MediaPlayerLengthChanged,
> libvlc_MediaPlayerVout,
Hi,
Wouldn't it be cleaner to use libvlc_MediaPlayerSnapshotTaken = libvlc_MediaPlayerPausableChanged + 2 to avoid exposing a libvlc_MediaPlayerDeprecated01 name?
Keeping the values as consistent as possible seems like a very good idea though
Regards,
--
Hugo Beauzée-Luyssen
hugo at beauzee.fr
More information about the vlc-devel
mailing list