[vlc-devel] [PATCH] Added libvlc_video_get_spu_delay and, libvlc_video_set_spu_delay.

Alexey Sokolov alexey at alexeysokolov.co.cc
Wed Nov 30 16:21:05 CET 2011


30.11.2011 14:16, John Hendrikx пишет:
> +int libvlc_video_set_spu_delay( libvlc_media_player_t *p_mi,
> +                                int64_t i_delay )
> +{
> +    input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi );
> +    int ret = -1;
> +
> +    if( p_input_thread )
> +    {
> +        var_SetTime( p_input_thread, "spu-delay", i_delay );
> +        vlc_object_release( p_input_thread );
> +        ret = 0;
> +    }
Please add:
else
{
    libvlc_printerr( "No input thread" );
}
> +
> +    return ret;
> +}
> +
> libvlc_track_description_t *
>         libvlc_video_get_title_description( libvlc_media_player_t *p_mi )
> {
> -- 1.7.4.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel


-- 
Best regards,
Alexey "DarthGandalf" Sokolov



More information about the vlc-devel mailing list