projects
/
profile
/
ivi
/
pulseaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: Factor out passthrough checks into their own functions
[profile/ivi/pulseaudio.git]
/
src
/
modules
/
alsa
/
alsa-sink.c
diff --git
a/src/modules/alsa/alsa-sink.c
b/src/modules/alsa/alsa-sink.c
index
3f8f6d2
..
b98340b
100644
(file)
--- a/
src/modules/alsa/alsa-sink.c
+++ b/
src/modules/alsa/alsa-sink.c
@@
-1058,7
+1058,7
@@
static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
pa_sink_input *i = PA_SINK_INPUT(data);
int r = 0;
pa_sink_input *i = PA_SINK_INPUT(data);
int r = 0;
- if (PA_LIKELY(
pa_format_info_is_pcm(i->format
)))
+ if (PA_LIKELY(
!pa_sink_input_is_passthrough(i
)))
break;
u->old_rate = u->sink->sample_spec.rate;
break;
u->old_rate = u->sink->sample_spec.rate;
@@
-1084,7
+1084,7
@@
static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
pa_sink_input *i = PA_SINK_INPUT(data);
int r = 0;
pa_sink_input *i = PA_SINK_INPUT(data);
int r = 0;
- if (PA_LIKELY(
pa_format_info_is_pcm(i->format
)))
+ if (PA_LIKELY(
!pa_sink_input_is_passthrough(i
)))
break;
/* Passthrough format, see if we need to reset sink sample rate */
break;
/* Passthrough format, see if we need to reset sink sample rate */