Discoverer is failing to abort after the 1 second timeout is reached
Discoverer is expected to abort the playback of a corrupted (unfinished) midi file (White_Room.kar). Instead it hangs in the infinite loop.
Here's a test-case copied from a related bugreport:
#!/usr/bin/python3
import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstPbutils', '1.0')
from gi.repository import Gst, GstPbutils
Gst.init([])
disco = GstPbutils.Discoverer.new(1 * Gst.SECOND)
disco.discover_uri('file:///home/sam/Downloads/White_Room.kar')
Related issue: https://gitlab.gnome.org/GNOME/tracker/issues/168