mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
scache: pa_context_play_sample_with_proplist: constify proplist param
If the given proplist is NULL, the function creates a new (empty) proplist. That caused a compiler warning after the constification, which is why the new proplist is now created using a separate variable.
This commit is contained in:
parent
f17bcb0ad5
commit
5c2d28f6df
2 changed files with 5 additions and 5 deletions
|
|
@ -116,7 +116,7 @@ pa_operation* pa_context_play_sample_with_proplist(
|
|||
const char *name /**< Name of the sample to play */,
|
||||
const char *dev /**< Sink to play this sample on */,
|
||||
pa_volume_t volume /**< Volume to play this sample with. Starting with 0.9.15 you may pass here PA_VOLUME_INVALID which will leave the decision about the volume to the server side, which is a good idea. */ ,
|
||||
pa_proplist *proplist /**< Property list for this sound. The property list of the cached entry will have this merged into it. */,
|
||||
const pa_proplist *proplist /**< Property list for this sound. The property list of the cached entry will have this merged into it. */,
|
||||
pa_context_play_sample_cb_t cb /**< Call this function after successfully starting playback, or NULL */,
|
||||
void *userdata /**< Userdata to pass to the callback */);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue