mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-13 14:33:03 -04:00
pulse: add some SPA_LIKELY
This commit is contained in:
parent
753ed37ec5
commit
3a9dbc6d99
2 changed files with 22 additions and 22 deletions
|
|
@ -214,14 +214,14 @@ uint32_t stream_pop_missing(struct stream *stream)
|
|||
missing -= stream->requested;
|
||||
missing -= avail;
|
||||
|
||||
if (missing <= 0) {
|
||||
pw_log_debug("stream %p: (tlen:%u - req:%"PRIi64" - avail:%"PRIi64") <= 0",
|
||||
if (SPA_UNLIKELY(missing <= 0)) {
|
||||
pw_log_trace_fp("stream %p: (tlen:%u - req:%"PRIi64" - avail:%"PRIi64") <= 0",
|
||||
stream, stream->attr.tlength, stream->requested, avail);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (missing < stream->attr.minreq && !stream_prebuf_active(stream, avail)) {
|
||||
pw_log_debug("stream %p: (tlen:%u - req:%"PRIi64" - avail:%"PRIi64") <= minreq:%u",
|
||||
if (SPA_LIKELY(missing < stream->attr.minreq && !stream_prebuf_active(stream, avail))) {
|
||||
pw_log_trace_fp("stream %p: (tlen:%u - req:%"PRIi64" - avail:%"PRIi64") <= minreq:%u",
|
||||
stream, stream->attr.tlength, stream->requested, avail,
|
||||
stream->attr.minreq);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue