summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-02 14:34:40 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-02 14:34:40 +0000
commitd091a231833a192000bcc59fcf042c2ba78c1565 (patch)
treec2d48ab0040d51158e488db66570be4f4d9cf595
parent7b68bacceb144392660b0b087ad4c4112e058806 (diff)
sync with e's pulse
SVN revision: 64647
-rw-r--r--serial.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/serial.c b/serial.c
index d113afb..278e585 100644
--- a/serial.c
+++ b/serial.c
@@ -43,7 +43,10 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source)
43 43
44 monitor_source_name = driver = NULL; 44 monitor_source_name = driver = NULL;
45 EINA_SAFETY_ON_FALSE_GOTO(untag_uint32(tag, &x), error); 45 EINA_SAFETY_ON_FALSE_GOTO(untag_uint32(tag, &x), error);
46 sink = eina_hash_find(pulse_sinks, &x); 46 if (source && pulse_sources)
47 sink = eina_hash_find(pulse_sources, &x);
48 else if ((!source) && pulse_sinks)
49 sink = eina_hash_find(pulse_sinks, &x);
47 exist = !!sink; 50 exist = !!sink;
48 if (!sink) sink = calloc(1, sizeof(Pulse_Sink)); 51 if (!sink) sink = calloc(1, sizeof(Pulse_Sink));
49 sink->index = x; 52 sink->index = x;