[pulseaudio-commits] r2097 - /trunk/src/pulsecore/protocol-native.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Jan 4 06:59:12 PST 2008


Author: sjoerd
Date: Fri Jan  4 15:59:09 2008
New Revision: 2097

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2097&root=pulseaudio&view=rev
Log:
Don't send opcodes introduced in protocol versions 12 to clients using protocol
version 11. (fixes #183)

Modified:
    trunk/src/pulsecore/protocol-native.c

Modified: trunk/src/pulsecore/protocol-native.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/protocol-native.c?rev=2097&root=pulseaudio&r1=2096&r2=2097&view=diff
==============================================================================
--- trunk/src/pulsecore/protocol-native.c (original)
+++ trunk/src/pulsecore/protocol-native.c Fri Jan  4 15:59:09 2008
@@ -1069,6 +1069,9 @@
     s = PLAYBACK_STREAM(i->userdata);
     playback_stream_assert_ref(s);
 
+    if (s->connection->version < 12)
+      return;
+
     t = pa_tagstruct_new(NULL, 0);
     pa_tagstruct_putu32(t, PA_COMMAND_PLAYBACK_STREAM_SUSPENDED);
     pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */
@@ -1085,6 +1088,9 @@
     pa_sink_input_assert_ref(i);
     s = PLAYBACK_STREAM(i->userdata);
     playback_stream_assert_ref(s);
+
+    if (s->connection->version < 12)
+      return;
 
     t = pa_tagstruct_new(NULL, 0);
     pa_tagstruct_putu32(t, PA_COMMAND_PLAYBACK_STREAM_MOVED);
@@ -1142,6 +1148,9 @@
     s = RECORD_STREAM(o->userdata);
     record_stream_assert_ref(s);
 
+    if (s->connection->version < 12)
+      return;
+
     t = pa_tagstruct_new(NULL, 0);
     pa_tagstruct_putu32(t, PA_COMMAND_RECORD_STREAM_SUSPENDED);
     pa_tagstruct_putu32(t, (uint32_t) -1); /* tag */
@@ -1158,6 +1167,9 @@
     pa_source_output_assert_ref(o);
     s = RECORD_STREAM(o->userdata);
     record_stream_assert_ref(s);
+
+    if (s->connection->version < 12)
+      return;
 
     t = pa_tagstruct_new(NULL, 0);
     pa_tagstruct_putu32(t, PA_COMMAND_RECORD_STREAM_MOVED);




More information about the pulseaudio-commits mailing list