]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
rawmidi: stream_pair: emit 'receive-msgs'
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 12 Apr 2020 05:30:33 +0000 (14:30 +0900)
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/rawmidi/stream-pair.c

index ed4294cd5853dfbfb281ace2950a752a58d5c8de..73a26aa419ba0eb21ee4ce570057adcc5f5d2dd1 100644 (file)
@@ -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;
 }