commit 63b045cad9727021652ef615f74e366f26a4827c
Author: Sjoerd Simons <sjoerd@luon.net>
Date: Sun Dec 9 23:54:13 2007 +0100
Don't send the SERVER -> CLIENT PA_COMMANDS introduced in protocol version 12
to connections with a protocol version smaller as 12
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index 46405f1..4f58279 100644
|
a
|
b
|
|
| 1069 | 1069 | s = PLAYBACK_STREAM(i->userdata); |
| 1070 | 1070 | playback_stream_assert_ref(s); |
| 1071 | 1071 | |
| | 1072 | if (s->connection->version < 12) |
| | 1073 | return; |
| | 1074 | |
| 1072 | 1075 | t = pa_tagstruct_new(NULL, 0); |
| 1073 | 1076 | pa_tagstruct_putu32(t, PA_COMMAND_PLAYBACK_STREAM_SUSPENDED); |
| 1074 | 1077 | pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */ |
| … |
… |
|
| 1086 | 1089 | s = PLAYBACK_STREAM(i->userdata); |
| 1087 | 1090 | playback_stream_assert_ref(s); |
| 1088 | 1091 | |
| | 1092 | if (s->connection->version < 12) |
| | 1093 | return; |
| | 1094 | |
| 1089 | 1095 | t = pa_tagstruct_new(NULL, 0); |
| 1090 | 1096 | pa_tagstruct_putu32(t, PA_COMMAND_PLAYBACK_STREAM_MOVED); |
| 1091 | 1097 | pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */ |
| … |
… |
|
| 1142 | 1148 | s = RECORD_STREAM(o->userdata); |
| 1143 | 1149 | record_stream_assert_ref(s); |
| 1144 | 1150 | |
| | 1151 | if (s->connection->version < 12) |
| | 1152 | return; |
| | 1153 | |
| 1145 | 1154 | t = pa_tagstruct_new(NULL, 0); |
| 1146 | 1155 | pa_tagstruct_putu32(t, PA_COMMAND_RECORD_STREAM_SUSPENDED); |
| 1147 | 1156 | pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */ |
| … |
… |
|
| 1159 | 1168 | s = RECORD_STREAM(o->userdata); |
| 1160 | 1169 | record_stream_assert_ref(s); |
| 1161 | 1170 | |
| | 1171 | if (s->connection->version < 12) |
| | 1172 | return; |
| | 1173 | |
| 1162 | 1174 | t = pa_tagstruct_new(NULL, 0); |
| 1163 | 1175 | pa_tagstruct_putu32(t, PA_COMMAND_RECORD_STREAM_MOVED); |
| 1164 | 1176 | pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */ |