From cfae2a37bec014ec65b06e4ec2b45eab24bd4a7e Mon Sep 17 00:00:00 2001 From: Ricky Tang Date: Mon, 7 Sep 2020 23:20:58 +0800 Subject: [PATCH] rtspsrc: Fix push-backchannel-buffer parameter mismatch When using python, signal parameter must match with function. Part-of: --- docs/gst_plugins_cache.json | 2 +- gst/rtsp/gstrtspsrc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index e7f2313b6e..2f1bfeea10 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -20776,7 +20776,7 @@ }, { "name": "arg1", - "type": "GstBuffer" + "type": "GstSample" } ], "return-type": "GstFlowReturn", diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 242ef6dbe9..21321e8792 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1131,7 +1131,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass) /** * GstRTSPSrc::push-backchannel-buffer: * @rtspsrc: a #GstRTSPSrc - * @buffer: RTP buffer to send back + * @sample: RTP sample to send back * * */ @@ -1139,7 +1139,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass) g_signal_new ("push-backchannel-buffer", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRTSPSrcClass, push_backchannel_buffer), NULL, NULL, NULL, - GST_TYPE_FLOW_RETURN, 2, G_TYPE_UINT, GST_TYPE_BUFFER); + GST_TYPE_FLOW_RETURN, 2, G_TYPE_UINT, GST_TYPE_SAMPLE); /** * GstRTSPSrc::get-parameter: