Improve enum_param

Add an argument to pass the result param to the caller instead of
having the caller have to pick it up from the builder.
Improve docs for node, clock and monitor
Pass spa_pod everywhere instead of spa_pod_object.
Pass result argument to spa_pod_filter to make things a little
nicer.
This commit is contained in:
Wim Taymans 2017-11-13 17:57:38 +01:00
parent cd5e697e9f
commit 440f681f4b
70 changed files with 872 additions and 858 deletions

View file

@ -663,7 +663,7 @@ gst_pipewire_src_negotiate (GstBaseSrc * basesrc)
pwsrc->path,
PW_STREAM_FLAG_AUTOCONNECT,
possible->len,
(const struct spa_pod_object **)possible->pdata);
(const struct spa_pod **)possible->pdata);
g_ptr_array_free (possible, TRUE);
while (TRUE) {
@ -725,8 +725,8 @@ connect_error:
#define SPA_PROP_RANGE(min,max) 2,min,max
static void
on_format_changed (void *data,
struct spa_pod_object *format)
on_format_changed (void *data,
struct spa_pod *format)
{
GstPipeWireSrc *pwsrc = data;
GstCaps *caps;
@ -746,7 +746,7 @@ on_format_changed (void *data,
gst_caps_unref (caps);
if (res) {
struct spa_pod_object *params[2];
struct spa_pod *params[2];
struct spa_pod_builder b = { NULL };
uint8_t buffer[512];