Error overriding method despite matching signature
I'm trying to compile gnome-dvb-daemon using Vala 0.48.7, but get the following error
src/rtsp/MediaFactory.vala:95.9-95.52: error: overriding method `DVB.MediaFactory.create_pipeline' is incompatible with base method `Gst.Pipeline Gst.RTSPServer.MediaFactory.create_pipeline (Gst.RTSPServer.Media)': Base method expected return type `Gst.Pipeline', but `Gst.Pipeline' was provided.
public override Gst.Pipeline create_pipeline (Gst.RTSPServer.Media media) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/rtsp/MediaFactory.vala:95.9-95.52: error: `DVB.MediaFactory.create_pipeline': no suitable method found to override
public override Gst.Pipeline create_pipeline (Gst.RTSPServer.Media media) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The first error (Base method expected return type Gst.Pipeline, but Gst.Pipeline was provided
) doesn't make any sense to me, and I don't know about the second error, because gstreamer-rtsp-server-1.0.vapi
has:
public virtual Gst.Pipeline create_pipeline (Gst.RTSPServer.Media media);
The valac call includes --pkg gstreamer-rtsp-server-1.0
.