More accurate message handling for GStreamer.