[vlc-devel] [PATCH 08/15] libvlc: deprecate libvlc_media_is_parsed

Thomas Guillem thomas at gllm.fr
Thu Apr 14 20:15:51 CEST 2016



On Thu, Apr 14, 2016, at 17:44, Thomas Guillem wrote:
> ---
>  include/vlc/libvlc_events.h | 2 +-
>  include/vlc/libvlc_media.h  | 5 ++++-
>  2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/include/vlc/libvlc_events.h b/include/vlc/libvlc_events.h
> index 45ce86e..c936372 100644
> --- a/include/vlc/libvlc_events.h
> +++ b/include/vlc/libvlc_events.h
> @@ -49,7 +49,7 @@ enum libvlc_event_e {
>      libvlc_MediaMetaChanged=0,
>      libvlc_MediaSubItemAdded,
>      libvlc_MediaDurationChanged,
> -    libvlc_MediaParsedChanged,
> +    libvlc_MediaParsedChanged, /* XXX: use libvlc_MediaParsedStatus
> event instead */

Actually, this shouldn't be deprecated. This can still be used when the
media is preparsed by the media player during playback.

>      libvlc_MediaFreed,
>      libvlc_MediaStateChanged,
>      libvlc_MediaSubItemTreeAdded,
> diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
> index 2f10ec3..12eedda 100644
> --- a/include/vlc/libvlc_media.h
> +++ b/include/vlc/libvlc_media.h
> @@ -706,6 +706,9 @@ libvlc_media_parse_with_options( libvlc_media_t
> *p_md,
>  /**
>   * Return true is the media descriptor object is parsed
>   *
> + * \deprecated This can return true in case of failure.
> + *             Use libvlc_media_get_parsed_status instead
> + *
>   * \see libvlc_MediaParsedChanged
>   *
>   * \param p_md media descriptor object
> @@ -713,7 +716,7 @@ libvlc_media_parse_with_options( libvlc_media_t
> *p_md,
>   *
>   * \libvlc_return_bool
>   */
> -LIBVLC_API int
> +LIBVLC_DEPRECATED LIBVLC_API int
>     libvlc_media_is_parsed( libvlc_media_t *p_md );
>  
>  /**
> -- 
> 2.8.0.rc3
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list