mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
filter-chain: emit en error when graph fails
This commit is contained in:
parent
f6e76f8356
commit
3e4da8e8e4
1 changed files with 7 additions and 1 deletions
|
|
@ -1002,6 +1002,7 @@ static void param_changed(void *data, uint32_t id, const struct spa_pod *param)
|
||||||
{
|
{
|
||||||
struct impl *impl = data;
|
struct impl *impl = data;
|
||||||
struct graph *graph = &impl->graph;
|
struct graph *graph = &impl->graph;
|
||||||
|
int res;
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case SPA_PARAM_Format:
|
case SPA_PARAM_Format:
|
||||||
|
|
@ -1012,7 +1013,12 @@ static void param_changed(void *data, uint32_t id, const struct spa_pod *param)
|
||||||
spa_zero(info);
|
spa_zero(info);
|
||||||
spa_format_audio_raw_parse(param, &info);
|
spa_format_audio_raw_parse(param, &info);
|
||||||
impl->rate = info.rate;
|
impl->rate = info.rate;
|
||||||
graph_instantiate(graph);
|
res = graph_instantiate(graph);
|
||||||
|
if (res < 0) {
|
||||||
|
pw_stream_set_error(impl->capture, res,
|
||||||
|
"can't start graph: %s",
|
||||||
|
spa_strerror(res));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPA_PARAM_Props:
|
case SPA_PARAM_Props:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue