rtspsrc: Fix push-backchannel-buffer parameter mismatch
authorRicky Tang <ricky@deepsentinel.com>
Mon, 7 Sep 2020 15:20:58 +0000 (23:20 +0800)
committerRicky Tang <ricky@deepsentinel.com>
Fri, 11 Sep 2020 10:33:04 +0000 (18:33 +0800)
When using python, signal parameter must match with function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/724>

docs/gst_plugins_cache.json
gst/rtsp/gstrtspsrc.c

index e7f2313..2f1bfee 100644 (file)
                             },
                             {
                                 "name": "arg1",
-                                "type": "GstBuffer"
+                                "type": "GstSample"
                             }
                         ],
                         "return-type": "GstFlowReturn",
index 242ef6d..21321e8 100644 (file)
@@ -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: