From: Takashi Sakamoto Date: Mon, 18 Nov 2019 04:22:44 +0000 (+0900) Subject: rawmidi: stream_pair: emit 'receive-msgs' X-Git-Tag: v0.1.0~168 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=928258194865e63bd66479d0a2a3bd76942168a4;p=alsa-gobject.git rawmidi: stream_pair: emit 'receive-msgs' Signed-off-by: Takashi Sakamoto --- 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; }