[vlc-commits] [Git][videolan/vlc][master] 2 commits: include: fix doc typo
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Fri Nov 5 08:39:13 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
81a1c024 by Martin Finkel at 2021-11-05T08:22:33+00:00
include: fix doc typo
- - - - -
e74021fa by Martin Finkel at 2021-11-05T08:22:33+00:00
lib: mediaplayer: fix API behavior regression
In LibVLC 3, passing a NULL media was supported. In LibVLC 4, it currently crashes.
Fixes https://code.videolan.org/videolan/vlc-unity/-/issues/123
- - - - -
2 changed files:
- include/vlc/libvlc_media_player.h
- lib/media_player.c
Changes:
=====================================
include/vlc/libvlc_media_player.h
=====================================
@@ -199,7 +199,7 @@ LIBVLC_API void libvlc_media_player_retain( libvlc_media_player_t *p_mi );
*
* \note The user should listen to the libvlc_MediaPlayerMediaChanged event, to
* know when the new media is actually used by the player (or to known that the
- * older media is no longuer used).
+ * older media is no longer used).
*
* \param p_mi the Media Player
* \param p_md the Media. Afterwards the p_md can be safely
=====================================
lib/media_player.c
=====================================
@@ -865,7 +865,7 @@ void libvlc_media_player_set_media(
}
p_mi->p_md = p_md;
- vlc_player_SetCurrentMedia(p_mi->player, p_md->p_input_item);
+ vlc_player_SetCurrentMedia(p_mi->player, p_md ? p_md->p_input_item : NULL);
vlc_player_Unlock(p_mi->player);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b9e50b090cf97fcb595dee4bfcec6e809818c51d...e74021faf84f8d1265589dc12441cd780d72f01f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b9e50b090cf97fcb595dee4bfcec6e809818c51d...e74021faf84f8d1265589dc12441cd780d72f01f
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list