mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
gst: sink: remove unnecessary variable
`res` can be removed without changing the behaviour, so do that.
This commit is contained in:
parent
1f06d00838
commit
b1443185ea
1 changed files with 2 additions and 4 deletions
|
|
@ -704,7 +704,6 @@ gst_pipewire_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
g_autoptr(GPtrArray) possible = NULL;
|
||||
enum pw_stream_state state;
|
||||
const char *error = NULL;
|
||||
gboolean res = FALSE;
|
||||
GstStructure *config, *s;
|
||||
guint size;
|
||||
guint min_buffers;
|
||||
|
|
@ -795,7 +794,6 @@ gst_pipewire_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
}
|
||||
}
|
||||
}
|
||||
res = TRUE;
|
||||
|
||||
gst_pipewire_clock_reset (GST_PIPEWIRE_CLOCK (pwsink->stream->clock), 0);
|
||||
|
||||
|
|
@ -806,9 +804,9 @@ gst_pipewire_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
|
||||
pw_thread_loop_unlock (pwsink->stream->core->loop);
|
||||
|
||||
pwsink->negotiated = res;
|
||||
pwsink->negotiated = TRUE;
|
||||
|
||||
return res;
|
||||
return TRUE;
|
||||
|
||||
start_error:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue