mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
parent
0bca352241
commit
a6035dc4c0
3 changed files with 5 additions and 4 deletions
|
|
@ -2324,11 +2324,12 @@ static struct pw_manager_object *find_device(struct client *client,
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sample_play_ready(void *data, uint32_t index)
|
static void sample_play_ready(void *data, uint32_t id)
|
||||||
{
|
{
|
||||||
struct pending_sample *ps = data;
|
struct pending_sample *ps = data;
|
||||||
struct client *client = ps->client;
|
struct client *client = ps->client;
|
||||||
struct message *reply;
|
struct message *reply;
|
||||||
|
uint32_t index = id_to_index(client->manager, id);
|
||||||
|
|
||||||
pw_log_info("[%s] PLAY_SAMPLE tag:%u index:%u",
|
pw_log_info("[%s] PLAY_SAMPLE tag:%u index:%u",
|
||||||
client->name, ps->tag, index);
|
client->name, ps->tag, index);
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,8 @@ static void sample_play_stream_state_changed(void *data, enum pw_stream_state ol
|
||||||
sample_play_emit_done(p, -EIO);
|
sample_play_emit_done(p, -EIO);
|
||||||
break;
|
break;
|
||||||
case PW_STREAM_STATE_PAUSED:
|
case PW_STREAM_STATE_PAUSED:
|
||||||
p->index = pw_stream_get_node_id(p->stream);
|
p->id = pw_stream_get_node_id(p->stream);
|
||||||
sample_play_emit_ready(p, p->index);
|
sample_play_emit_ready(p, p->id);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ struct sample_play {
|
||||||
struct sample *sample;
|
struct sample *sample;
|
||||||
struct pw_stream *stream;
|
struct pw_stream *stream;
|
||||||
struct spa_io_rate_match *rate_match;
|
struct spa_io_rate_match *rate_match;
|
||||||
uint32_t index;
|
uint32_t id;
|
||||||
struct spa_hook listener;
|
struct spa_hook listener;
|
||||||
struct pw_context *context;
|
struct pw_context *context;
|
||||||
struct pw_loop *main_loop;
|
struct pw_loop *main_loop;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue