From 928258194865e63bd66479d0a2a3bd76942168a4 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Mon, 18 Nov 2019 13:22:44 +0900 Subject: [PATCH] rawmidi: stream_pair: emit 'receive-msgs' Signed-off-by: Takashi Sakamoto --- src/rawmidi/stream-pair.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rawmidi/stream-pair.c b/src/rawmidi/stream-pair.c index ed4294c..73a26aa 100644 --- a/src/rawmidi/stream-pair.c +++ b/src/rawmidi/stream-pair.c @@ -402,6 +402,12 @@ static gboolean rawmidi_stream_pair_dispatch_src(GSource *gsrc, GSourceFunc cb, if (condition & G_IO_ERR) return G_SOURCE_REMOVE; + if (condition & G_IO_IN) { + g_signal_emit(self, + rawmidi_stream_pair_sigs[RAWMIDI_STREAM_PAIR_SIG_HANDLE_MESSAGES], + 0); + } + // Just be sure to continue to process this source. return G_SOURCE_CONTINUE; } -- 2.47.3