mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-cat: clean up resource correctly on EIO
The core has already been connected and the loop is running so we also have to clean those up. Fixes #2651
This commit is contained in:
parent
6b3390387d
commit
bbb3cdc185
1 changed files with 1 additions and 1 deletions
|
|
@ -1663,6 +1663,7 @@ error_connect_fail:
|
||||||
pw_stream_destroy(data.stream);
|
pw_stream_destroy(data.stream);
|
||||||
}
|
}
|
||||||
error_no_stream:
|
error_no_stream:
|
||||||
|
error_bad_file:
|
||||||
spa_hook_remove(&data.core_listener);
|
spa_hook_remove(&data.core_listener);
|
||||||
pw_core_disconnect(data.core);
|
pw_core_disconnect(data.core);
|
||||||
error_ctx_connect_failed:
|
error_ctx_connect_failed:
|
||||||
|
|
@ -1671,7 +1672,6 @@ error_no_context:
|
||||||
pw_main_loop_destroy(data.loop);
|
pw_main_loop_destroy(data.loop);
|
||||||
error_no_props:
|
error_no_props:
|
||||||
error_no_main_loop:
|
error_no_main_loop:
|
||||||
error_bad_file:
|
|
||||||
pw_properties_free(data.props);
|
pw_properties_free(data.props);
|
||||||
if (data.file)
|
if (data.file)
|
||||||
sf_close(data.file);
|
sf_close(data.file);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue