gstreamer-sharp: An unhandled exception of type 'System.Exception' occurred in GLibSharp.dll Unknown type GstRTSPMessage
Currently trying to handle the before-send rtspsrc signal in order to add headers to RTSP messages. Upon the handler being triggered the titular message is thrown.
Here is my current handler:
private void BeforeSendCb(object sender, SignalArgs args) { Gst.Rtsp.RTSPMessage message = (Gst.Rtsp.RTSPMessage)args.Args[0]; message.AddHeader(Gst.Rtsp.RTSPHeaderField.CompanyId, "CONNOR HAWES"); Trace.WriteLine("BREAK HERE"); }
And the subscription:
_rtspsrc.Connect("before-send", BeforeSendCb);
I was wondering if I was doing anything wrong or if there is a workaround?
Thanks in advance