[vlc-devel] [patch] pulseaudio API compatibility fix

Rémi Denis-Courmont remi at remlab.net
Fri Jul 6 19:34:00 CEST 2018


Le perjantaina 6. heinäkuuta 2018, 20.27.43 EEST Rémi Denis-Courmont a écrit :
> Patch is giving ugly warnings here.

../../modules/audio_output/pulse.c: In function ‘stream_start’:
../../modules/audio_output/pulse.c:248:46: warning: passing argument 3 of 
‘pa_context_rttime_new’ from incompatible pointer type [-Wincompatible-
pointer-types]
                                              stream_trigger_cb, aout);
                                              ^~~~~~~~~~~~~~~~~
In file included from /usr/include/pulse/pulseaudio.h:29:0,
                 from ../../modules/audio_output/pulse.c:35:
/usr/include/pulse/context.h:263:16: note: expected ‘pa_time_event_cb_t {aka 
void (*)(struct pa_mainloop_api *, struct pa_time_event *, const struct 
timeval *, void *)}’ but argument is of type ‘void (*)(const pa_mainloop_api 
*, pa_time_event *, const struct timeval *, void *) {aka void (*)(const struct 
pa_mainloop_api *, struct pa_time_event *, const struct timeval *, void *)}’
 pa_time_event* pa_context_rttime_new(pa_context *c, pa_usec_t usec, 
pa_time_event_cb_t cb, void *userdata);
                ^~~~~~~~~~~~~~~~~~~~~

Can't we have something that works nicely with existing versions??
-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list