remove spalib

This commit is contained in:
Wim Taymans 2018-08-14 12:33:53 +02:00
parent f532fd8681
commit a6ad8f747f
69 changed files with 612 additions and 1250 deletions

View file

@ -27,7 +27,6 @@
#include <spa/param/format-utils.h>
#include <spa/param/audio/format-utils.h>
#include <spa/param/props.h>
#include <spa/lib/debug.h>
#include <pipewire/pipewire.h>

View file

@ -28,7 +28,7 @@
#include <spa/param/video/format-utils.h>
#include <spa/param/props.h>
#include <spa/node/io.h>
#include <spa/lib/debug.h>
#include <spa/debug/format.h>
#include <pipewire/pipewire.h>
#include <pipewire/module.h>
@ -455,7 +455,7 @@ static int port_set_format(struct spa_node *node,
if (format == NULL)
return 0;
spa_debug_pod(format, SPA_DEBUG_FLAG_FORMAT);
spa_debug_format(0, d->t->map, format);
spa_format_video_raw_parse(format, &d->format, &d->type.format_video);
@ -683,8 +683,6 @@ int main(int argc, char *argv[])
init_type(&data.type, data.t->map);
reset_props(&data.props);
spa_debug_set_type_map(data.t->map);
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("can't initialize SDL: %s\n", SDL_GetError());
return -1;

View file

@ -27,7 +27,7 @@
#include <spa/param/audio/format-utils.h>
#include <spa/param/props.h>
#include <spa/node/io.h>
#include <spa/lib/debug.h>
#include <spa/debug/format.h>
#include <pipewire/pipewire.h>
@ -359,7 +359,7 @@ static int port_set_format(struct spa_node *node,
return 0;
}
spa_debug_pod(format, SPA_DEBUG_FLAG_FORMAT);
spa_debug_format(0, d->t->map, format);
if (spa_format_audio_raw_parse(format, &d->format, &d->type.format_audio) < 0)
return -EINVAL;
@ -602,7 +602,6 @@ int main(int argc, char *argv[])
spa_list_init(&data.empty);
init_type(&data.type, data.t->map);
reset_props(&data.props);
spa_debug_set_type_map(data.t->map);
pw_remote_add_listener(data.remote, &data.remote_listener, &remote_events, &data);

View file

@ -26,8 +26,6 @@
#include <spa/param/video/format-utils.h>
#include <spa/param/props.h>
#include <spa/lib/debug.h>
#include <pipewire/pipewire.h>
#include <pipewire/factory.h>
@ -140,8 +138,6 @@ int main(int argc, char *argv[])
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL, NULL, NULL, NULL);
spa_debug_set_type_map(data.t->map);
pw_remote_add_listener(data.remote, &data.remote_listener, &remote_events, &data);
pw_remote_connect(data.remote);

View file

@ -27,7 +27,7 @@
#include <spa/param/video/format-utils.h>
#include <spa/param/props.h>
#include <spa/node/io.h>
#include <spa/lib/debug.h>
#include <spa/debug/format.h>
#include <pipewire/pipewire.h>
#include <pipewire/module.h>
@ -337,7 +337,7 @@ static int port_set_format(struct spa_node *node, enum spa_direction direction,
if (format == NULL)
return 0;
spa_debug_pod(format, SPA_DEBUG_FLAG_FORMAT);
spa_debug_format(0, d->t->map, format);
spa_format_video_raw_parse(format, &d->format, &d->type.format_video);
@ -511,8 +511,6 @@ int main(int argc, char *argv[])
init_type(&data.type, data.t->map);
spa_debug_set_type_map(data.t->map);
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("can't initialize SDL: %s\n", SDL_GetError());
return -1;

View file

@ -29,9 +29,6 @@
#include <spa/utils/hook.h>
#include <spa/param/audio/format-utils.h>
#include <spa/lib/pod.h>
#include <spa/lib/debug.h>
#include "pipewire/core.h"
#include "pipewire/control.h"
#include "pipewire/link.h"

View file

@ -27,7 +27,7 @@
#include <spa/param/format-utils.h>
#include <spa/param/video/format-utils.h>
#include <spa/param/props.h>
#include <spa/lib/debug.h>
#include <spa/debug/format.h>
#include <pipewire/pipewire.h>
@ -322,7 +322,7 @@ static int build_format(struct data *data, struct spa_pod_builder *b, const stru
params[0] = spa_pod_builder_pop(b);
printf("supported formats:\n");
spa_debug_pod(params[0], SPA_DEBUG_FLAG_FORMAT);
spa_debug_format(2, data->t->map, params[0]);
return 0;
}
@ -355,7 +355,6 @@ int main(int argc, char *argv[])
data.path = argc > 1 ? argv[1] : NULL;
init_type(&data.type, data.t->map);
spa_debug_set_type_map(data.t->map);
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("can't initialize SDL: %s\n", SDL_GetError());

View file

@ -26,7 +26,6 @@
#include <spa/param/format-utils.h>
#include <spa/param/video/format-utils.h>
#include <spa/param/props.h>
#include <spa/lib/debug.h>
#include <pipewire/pipewire.h>