mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Improve debug
Add proxy destroy function and use it to free proxy user_data. Destroy sources from the poll thread. Fix format init
This commit is contained in:
parent
cf94117244
commit
f6ca32cdcf
12 changed files with 120 additions and 26 deletions
|
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
#include <spa/format.h>
|
||||
#include <spa/pod-builder.h>
|
||||
|
||||
#define SPA_FORMAT_INIT(size,type,media_type,media_subtype,...) \
|
||||
#define SPA_FORMAT_INIT(size,type,media_type,media_subtype) \
|
||||
{ { size, SPA_POD_TYPE_OBJECT }, \
|
||||
{ { 0, type }, \
|
||||
SPA_POD_ID_INIT(media_type), \
|
||||
|
|
@ -43,7 +43,7 @@ spa_pod_builder_push_format(struct spa_pod_builder *builder,
|
|||
uint32_t media_subtype)
|
||||
{
|
||||
const struct spa_format p = SPA_FORMAT_INIT(sizeof(struct spa_format_body),
|
||||
0, format_type, media_type, media_subtype);
|
||||
format_type, media_type, media_subtype);
|
||||
return spa_pod_builder_push(builder, frame, &p.pod,
|
||||
spa_pod_builder_raw(builder, &p, sizeof(p)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue