mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
stream; use const params in finish_format
This commit is contained in:
parent
1b37db8add
commit
057da435da
4 changed files with 5 additions and 5 deletions
|
|
@ -231,7 +231,7 @@ on_stream_format_changed(void *_data, const struct spa_pod *format)
|
|||
struct pw_type *t = data->t;
|
||||
uint8_t params_buffer[1024];
|
||||
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(params_buffer, sizeof(params_buffer));
|
||||
struct spa_pod *params[2];
|
||||
const struct spa_pod *params[2];
|
||||
Uint32 sdl_format;
|
||||
void *d;
|
||||
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ on_stream_format_changed(void *_data, const struct spa_pod *format)
|
|||
struct pw_type *t = data->t;
|
||||
uint8_t params_buffer[1024];
|
||||
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(params_buffer, sizeof(params_buffer));
|
||||
struct spa_pod *params[2];
|
||||
const struct spa_pod *params[2];
|
||||
|
||||
if (format == NULL) {
|
||||
pw_stream_finish_format(stream, 0, NULL, 0);
|
||||
|
|
|
|||
|
|
@ -1045,7 +1045,7 @@ set_init_params(struct pw_stream *stream,
|
|||
impl->n_init_params = n_init_params;
|
||||
}
|
||||
|
||||
static void set_params(struct pw_stream *stream, int n_params, struct spa_pod **params)
|
||||
static void set_params(struct pw_stream *stream, int n_params, const struct spa_pod **params)
|
||||
{
|
||||
struct stream *impl = SPA_CONTAINER_OF(stream, struct stream, this);
|
||||
int i;
|
||||
|
|
@ -1193,7 +1193,7 @@ int pw_stream_disconnect(struct pw_stream *stream)
|
|||
|
||||
void pw_stream_finish_format(struct pw_stream *stream,
|
||||
int res,
|
||||
struct spa_pod **params,
|
||||
const struct spa_pod **params,
|
||||
uint32_t n_params)
|
||||
{
|
||||
struct stream *impl = SPA_CONTAINER_OF(stream, struct stream, this);
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ int pw_stream_disconnect(struct pw_stream *stream);
|
|||
void
|
||||
pw_stream_finish_format(struct pw_stream *stream, /**< a \ref pw_stream */
|
||||
int res, /**< a result code */
|
||||
struct spa_pod **params, /**< an array of params. The params should
|
||||
const struct spa_pod **params, /**< an array of params. The params should
|
||||
* ideally contain parameters for doing
|
||||
* buffer allocation. */
|
||||
uint32_t n_params /**< number of elements in \a params */);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue