diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-05-15 11:19:23 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-05-15 11:19:23 +0200 |
commit | 6ee192dff5a19f95b25b5eaf11be42cf7b9990b5 (patch) | |
tree | a7c1630b6681dfc6cbd7f214829d26250d113223 /src/gst | |
parent | a78617c6a82a08027f86a8e388875a6e9735063f (diff) |
hooks: use hook to implement the callbacks
This way we get the version check implemented and save some
code.
Diffstat (limited to 'src/gst')
-rw-r--r-- | src/gst/gstpipewireformat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index 761bc1c2..f3d2926b 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -544,8 +544,7 @@ convert_1 (ConvertData *d) if (!(d->type = find_media_types (gst_structure_get_name (d->cs)))) return NULL; - d->b.callbacks = &builder_callbacks; - d->b.callbacks_data = &d->b; + spa_pod_builder_set_callbacks(&d->b, &builder_callbacks, &d->b); spa_pod_builder_push_object (&d->b, &f, SPA_TYPE_OBJECT_Format, d->id); |