mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
Use errno for result errors
Make new enumeration for data transport status and use errno style error numbers for errors.
This commit is contained in:
parent
dda28b1589
commit
6fb0f580ea
86 changed files with 2019 additions and 1988 deletions
|
|
@ -265,7 +265,7 @@ pool_activated (GstPipeWirePool *pool, GstPipeWireSink *sink)
|
|||
":", t->param_meta.ringbufferAlign, "i", 16);
|
||||
|
||||
pw_thread_loop_lock (sink->main_loop);
|
||||
pw_stream_finish_format (sink->stream, SPA_RESULT_OK, 2, port_params);
|
||||
pw_stream_finish_format (sink->stream, 0, 2, port_params);
|
||||
pw_thread_loop_unlock (sink->main_loop);
|
||||
}
|
||||
|
||||
|
|
@ -803,7 +803,7 @@ gst_pipewire_sink_open (GstPipeWireSink * pwsink)
|
|||
{
|
||||
const char *error = NULL;
|
||||
|
||||
if (pw_thread_loop_start (pwsink->main_loop) != SPA_RESULT_OK)
|
||||
if (pw_thread_loop_start (pwsink->main_loop) < 0)
|
||||
goto mainloop_error;
|
||||
|
||||
pw_thread_loop_lock (pwsink->main_loop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue