mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Don't pass default GLib marshallers for signals
By passing `NULL` to `g_signal_new` instead of a marshaller, GLib will actually internally optimize the signal (if the marshaller is available in GLib itself) by also setting the valist marshaller. This makes the signal emission a bit more performant than the regular marshalling, which still needs to box into `GValue` and call libffi in case of a generic marshaller. Note that for custom marshallers, one would use `g_signal_set_va_marshaller()` with the valist marshaller instead.
This commit is contained in:
parent
db187eec19
commit
7cf4ab6229
16 changed files with 134 additions and 205 deletions
|
@ -545,11 +545,7 @@ gst_cairo_overlay_class_init (GstCairoOverlayClass * klass)
|
|||
gst_cairo_overlay_signals[SIGNAL_DRAW] =
|
||||
g_signal_new ("draw",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
0, 0, NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 3, CAIRO_GOBJECT_TYPE_CONTEXT, G_TYPE_UINT64, G_TYPE_UINT64);
|
||||
|
||||
/**
|
||||
|
@ -562,8 +558,7 @@ gst_cairo_overlay_class_init (GstCairoOverlayClass * klass)
|
|||
gst_cairo_overlay_signals[SIGNAL_CAPS_CHANGED] =
|
||||
g_signal_new ("caps-changed",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
0,
|
||||
0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_CAPS);
|
||||
0, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_CAPS);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "Cairo overlay",
|
||||
"Filter/Editor/Video",
|
||||
|
|
|
@ -172,7 +172,7 @@ gst_dv1394src_class_init (GstDV1394SrcClass * klass)
|
|||
gst_dv1394src_signals[SIGNAL_FRAME_DROPPED] =
|
||||
g_signal_new ("frame-dropped", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDV1394SrcClass, frame_dropped),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0);
|
||||
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PORT,
|
||||
g_param_spec_int ("port", "Port", "Port number (-1 automatic)",
|
||||
|
|
|
@ -221,8 +221,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass)
|
|||
gst_shout2send_signals[SIGNAL_CONNECTION_PROBLEM] =
|
||||
g_signal_new ("connection-problem", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_CLEANUP, G_STRUCT_OFFSET (GstShout2sendClass,
|
||||
connection_problem), NULL, NULL, g_cclosure_marshal_VOID__INT,
|
||||
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
connection_problem), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_shout2send_start);
|
||||
gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_shout2send_stop);
|
||||
|
|
|
@ -67,8 +67,7 @@ rtp_storage_class_init (RtpStorageClass * klass)
|
|||
|
||||
rtp_storage_signals[SIGNAL_PACKET_RECOVERED] =
|
||||
g_signal_new ("packet-recovered", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_BUFFER);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_BUFFER);
|
||||
|
||||
gobject_class->dispose = rtp_storage_dispose;
|
||||
}
|
||||
|
|
|
@ -2004,8 +2004,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_PT_MAP] =
|
||||
g_signal_new ("request-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, request_pt_map),
|
||||
_gst_caps_accumulator, NULL, g_cclosure_marshal_generic, GST_TYPE_CAPS,
|
||||
2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
_gst_caps_accumulator, NULL, NULL, GST_TYPE_CAPS, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::payload-type-change:
|
||||
|
@ -2018,8 +2018,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_PAYLOAD_TYPE_CHANGE] =
|
||||
g_signal_new ("payload-type-change", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, payload_type_change),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::clear-pt-map:
|
||||
|
@ -2031,8 +2030,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_CLEAR_PT_MAP] =
|
||||
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
clear_pt_map), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE,
|
||||
0, G_TYPE_NONE);
|
||||
clear_pt_map), NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRtpBin::reset-sync:
|
||||
|
@ -2044,8 +2042,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_RESET_SYNC] =
|
||||
g_signal_new ("reset-sync", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
reset_sync), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE,
|
||||
0, G_TYPE_NONE);
|
||||
reset_sync), NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRtpBin::get-session:
|
||||
|
@ -2059,8 +2056,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_GET_SESSION] =
|
||||
g_signal_new ("get-session", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
get_session), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
get_session), NULL, NULL, NULL, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::get-internal-session:
|
||||
|
@ -2072,8 +2068,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_GET_INTERNAL_SESSION] =
|
||||
g_signal_new ("get-internal-session", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
get_internal_session), NULL, NULL, g_cclosure_marshal_generic,
|
||||
RTP_TYPE_SESSION, 1, G_TYPE_UINT);
|
||||
get_internal_session), NULL, NULL, NULL, RTP_TYPE_SESSION, 1,
|
||||
G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::get-internal-storage:
|
||||
|
@ -2089,8 +2085,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_GET_INTERNAL_STORAGE] =
|
||||
g_signal_new ("get-internal-storage", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
get_internal_storage), NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_OBJECT, 1, G_TYPE_UINT);
|
||||
get_internal_storage), NULL, NULL, NULL, G_TYPE_OBJECT, 1,
|
||||
G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::get-storage:
|
||||
|
@ -2105,8 +2101,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_GET_STORAGE] =
|
||||
g_signal_new ("get-storage", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
get_storage), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
get_storage), NULL, NULL, NULL, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::on-new-ssrc:
|
||||
|
@ -2119,8 +2114,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_NEW_SSRC] =
|
||||
g_signal_new ("on-new-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_new_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-ssrc-collision:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2132,8 +2126,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SSRC_COLLISION] =
|
||||
g_signal_new ("on-ssrc-collision", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_ssrc_collision),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-ssrc-validated:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2145,8 +2138,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SSRC_VALIDATED] =
|
||||
g_signal_new ("on-ssrc-validated", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_ssrc_validated),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-ssrc-active:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2158,8 +2150,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_ssrc_active),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-ssrc-sdes:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2171,8 +2162,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SSRC_SDES] =
|
||||
g_signal_new ("on-ssrc-sdes", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_ssrc_sdes),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::on-bye-ssrc:
|
||||
|
@ -2185,8 +2175,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_BYE_SSRC] =
|
||||
g_signal_new ("on-bye-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_bye_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-bye-timeout:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2198,8 +2187,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_BYE_TIMEOUT] =
|
||||
g_signal_new ("on-bye-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_bye_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-timeout:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2211,8 +2199,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_TIMEOUT] =
|
||||
g_signal_new ("on-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-sender-timeout:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2224,8 +2211,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SENDER_TIMEOUT] =
|
||||
g_signal_new ("on-sender-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_sender_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::on-npt-stop:
|
||||
|
@ -2238,8 +2224,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_NPT_STOP] =
|
||||
g_signal_new ("on-npt-stop", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_npt_stop),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-rtp-encoder:
|
||||
|
@ -2256,8 +2241,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_RTP_ENCODER] =
|
||||
g_signal_new ("request-rtp-encoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_rtp_encoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_rtp_encoder), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-rtp-decoder:
|
||||
|
@ -2275,7 +2260,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
g_signal_new ("request-rtp-decoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_rtp_decoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
NULL, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-rtcp-encoder:
|
||||
|
@ -2292,8 +2277,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_RTCP_ENCODER] =
|
||||
g_signal_new ("request-rtcp-encoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_rtcp_encoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_rtcp_encoder), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-rtcp-decoder:
|
||||
|
@ -2310,8 +2295,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_RTCP_DECODER] =
|
||||
g_signal_new ("request-rtcp-decoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_rtcp_decoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_rtcp_decoder), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-jitterbuffer:
|
||||
|
@ -2356,7 +2341,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_NEW_JITTERBUFFER] =
|
||||
g_signal_new ("new-jitterbuffer", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
new_jitterbuffer), NULL, NULL, g_cclosure_marshal_generic,
|
||||
new_jitterbuffer), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 3, GST_TYPE_ELEMENT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
|
@ -2373,7 +2358,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_NEW_STORAGE] =
|
||||
g_signal_new ("new-storage", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
new_storage), NULL, NULL, g_cclosure_marshal_generic,
|
||||
new_storage), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 2, GST_TYPE_ELEMENT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
|
@ -2391,8 +2376,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_AUX_SENDER] =
|
||||
g_signal_new ("request-aux-sender", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_aux_sender), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_aux_sender), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-aux-receiver:
|
||||
|
@ -2409,8 +2394,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_AUX_RECEIVER] =
|
||||
g_signal_new ("request-aux-receiver", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_aux_receiver), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_aux_receiver), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-fec-decoder:
|
||||
|
@ -2427,8 +2412,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_FEC_DECODER] =
|
||||
g_signal_new ("request-fec-decoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_fec_decoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_fec_decoder), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::request-fec-encoder:
|
||||
|
@ -2445,8 +2430,8 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_REQUEST_FEC_ENCODER] =
|
||||
g_signal_new ("request-fec-encoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
request_fec_encoder), _gst_element_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
request_fec_encoder), _gst_element_accumulator, NULL, NULL,
|
||||
GST_TYPE_ELEMENT, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpBin::on-new-sender-ssrc:
|
||||
|
@ -2461,8 +2446,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_NEW_SENDER_SSRC] =
|
||||
g_signal_new ("on-new-sender-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass, on_new_sender_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpBin::on-sender-ssrc-active:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -2476,7 +2460,7 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
|
|||
gst_rtp_bin_signals[SIGNAL_ON_SENDER_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-sender-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpBinClass,
|
||||
on_sender_ssrc_active), NULL, NULL, g_cclosure_marshal_generic,
|
||||
on_sender_ssrc_active), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SDES,
|
||||
|
|
|
@ -897,8 +897,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
gst_rtp_jitter_buffer_signals[SIGNAL_REQUEST_PT_MAP] =
|
||||
g_signal_new ("request-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpJitterBufferClass,
|
||||
request_pt_map), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
request_pt_map), NULL, NULL, NULL, GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpJitterBuffer::handle-sync:
|
||||
* @buffer: the object which received the signal
|
||||
|
@ -909,7 +908,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
gst_rtp_jitter_buffer_signals[SIGNAL_HANDLE_SYNC] =
|
||||
g_signal_new ("handle-sync", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpJitterBufferClass,
|
||||
handle_sync), NULL, NULL, g_cclosure_marshal_VOID__BOXED,
|
||||
handle_sync), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, GST_TYPE_STRUCTURE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
|
@ -922,8 +921,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
gst_rtp_jitter_buffer_signals[SIGNAL_ON_NPT_STOP] =
|
||||
g_signal_new ("on-npt-stop", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpJitterBufferClass,
|
||||
on_npt_stop), NULL, NULL, g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
on_npt_stop), NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRtpJitterBuffer::clear-pt-map:
|
||||
|
@ -936,7 +934,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstRtpJitterBufferClass, clear_pt_map), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRtpJitterBuffer::set-active:
|
||||
|
@ -951,8 +949,7 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
g_signal_new ("set-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstRtpJitterBufferClass, set_active), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_UINT64, 2, G_TYPE_BOOLEAN,
|
||||
G_TYPE_UINT64);
|
||||
NULL, G_TYPE_UINT64, 2, G_TYPE_BOOLEAN, G_TYPE_UINT64);
|
||||
|
||||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_change_state);
|
||||
|
|
|
@ -195,7 +195,7 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass)
|
|||
gst_rtp_pt_demux_signals[SIGNAL_REQUEST_PT_MAP] =
|
||||
g_signal_new ("request-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpPtDemuxClass, request_pt_map),
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpPtDemux::new-payload-type:
|
||||
|
@ -208,8 +208,7 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass)
|
|||
gst_rtp_pt_demux_signals[SIGNAL_NEW_PAYLOAD_TYPE] =
|
||||
g_signal_new ("new-payload-type", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpPtDemuxClass, new_payload_type),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
GST_TYPE_PAD);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, GST_TYPE_PAD);
|
||||
|
||||
/**
|
||||
* GstRtpPtDemux::payload-type-change:
|
||||
|
@ -221,8 +220,7 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass)
|
|||
gst_rtp_pt_demux_signals[SIGNAL_PAYLOAD_TYPE_CHANGE] =
|
||||
g_signal_new ("payload-type-change", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpPtDemuxClass,
|
||||
payload_type_change), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
payload_type_change), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpPtDemux::clear-pt-map:
|
||||
|
@ -234,8 +232,7 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass)
|
|||
gst_rtp_pt_demux_signals[SIGNAL_CLEAR_PT_MAP] =
|
||||
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_ACTION | G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpPtDemuxClass,
|
||||
clear_pt_map), NULL, NULL, g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
clear_pt_map), NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
gobject_klass->set_property = gst_rtp_pt_demux_set_property;
|
||||
gobject_klass->get_property = gst_rtp_pt_demux_get_property;
|
||||
|
|
|
@ -508,7 +508,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_REQUEST_PT_MAP] =
|
||||
g_signal_new ("request-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, request_pt_map),
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, GST_TYPE_CAPS, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::clear-pt-map:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -519,7 +519,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstRtpSessionClass, clear_pt_map),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRtpSession::on-new-ssrc:
|
||||
|
@ -531,7 +531,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_NEW_SSRC] =
|
||||
g_signal_new ("on-new-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_new_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-ssrc_collision:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -542,8 +542,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SSRC_COLLISION] =
|
||||
g_signal_new ("on-ssrc-collision", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass,
|
||||
on_ssrc_collision), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
on_ssrc_collision), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-ssrc_validated:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -554,8 +553,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SSRC_VALIDATED] =
|
||||
g_signal_new ("on-ssrc-validated", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass,
|
||||
on_ssrc_validated), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
on_ssrc_validated), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-ssrc-active:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -566,8 +564,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass,
|
||||
on_ssrc_active), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
on_ssrc_active), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-ssrc-sdes:
|
||||
* @session: the object which received the signal
|
||||
|
@ -578,7 +575,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SSRC_SDES] =
|
||||
g_signal_new ("on-ssrc-sdes", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_ssrc_sdes),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpSession::on-bye-ssrc:
|
||||
|
@ -590,7 +587,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_BYE_SSRC] =
|
||||
g_signal_new ("on-bye-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_bye_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-bye-timeout:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -601,7 +598,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_BYE_TIMEOUT] =
|
||||
g_signal_new ("on-bye-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_bye_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-timeout:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -612,7 +609,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_TIMEOUT] =
|
||||
g_signal_new ("on-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRtpSession::on-sender-timeout:
|
||||
* @sess: the object which received the signal
|
||||
|
@ -623,8 +620,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SENDER_TIMEOUT] =
|
||||
g_signal_new ("on-sender-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass,
|
||||
on_sender_timeout), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
on_sender_timeout), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpSession::on-new-sender-ssrc:
|
||||
|
@ -638,7 +634,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_NEW_SENDER_SSRC] =
|
||||
g_signal_new ("on-new-sender-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass, on_new_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRtpSession::on-sender-ssrc-active:
|
||||
|
@ -652,8 +648,7 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
|
|||
gst_rtp_session_signals[SIGNAL_ON_SENDER_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-sender-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRtpSessionClass,
|
||||
on_ssrc_active), NULL, NULL, g_cclosure_marshal_VOID__UINT,
|
||||
G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
on_ssrc_active), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_BANDWIDTH,
|
||||
g_param_spec_double ("bandwidth", "Bandwidth",
|
||||
|
|
|
@ -373,8 +373,7 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass)
|
|||
g_signal_new ("new-ssrc-pad",
|
||||
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRtpSsrcDemuxClass, new_ssrc_pad),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
GST_TYPE_PAD);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, GST_TYPE_PAD);
|
||||
|
||||
/**
|
||||
* GstRtpSsrcDemux::removed-ssrc-pad:
|
||||
|
@ -388,8 +387,7 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass)
|
|||
g_signal_new ("removed-ssrc-pad",
|
||||
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRtpSsrcDemuxClass, removed_ssrc_pad),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
GST_TYPE_PAD);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, GST_TYPE_PAD);
|
||||
|
||||
/**
|
||||
* GstRtpSsrcDemux::clear-ssrc:
|
||||
|
@ -402,7 +400,7 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass)
|
|||
g_signal_new ("clear-ssrc",
|
||||
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstRtpSsrcDemuxClass, clear_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_UINT);
|
||||
|
||||
gstelement_klass->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_ssrc_demux_change_state);
|
||||
|
|
|
@ -172,7 +172,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_GET_SOURCE_BY_SSRC] =
|
||||
g_signal_new ("get-source-by-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (RTPSessionClass,
|
||||
get_source_by_ssrc), NULL, NULL, g_cclosure_marshal_generic,
|
||||
get_source_by_ssrc), NULL, NULL, NULL,
|
||||
RTP_TYPE_SOURCE, 1, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
|
@ -185,8 +185,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_NEW_SSRC] =
|
||||
g_signal_new ("on-new-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_new_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-ssrc-collision:
|
||||
* @session: the object which received the signal
|
||||
|
@ -197,8 +196,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SSRC_COLLISION] =
|
||||
g_signal_new ("on-ssrc-collision", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_ssrc_collision),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-ssrc-validated:
|
||||
* @session: the object which received the signal
|
||||
|
@ -209,8 +207,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SSRC_VALIDATED] =
|
||||
g_signal_new ("on-ssrc-validated", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_ssrc_validated),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-ssrc-active:
|
||||
* @session: the object which received the signal
|
||||
|
@ -221,8 +218,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_ssrc_active),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-ssrc-sdes:
|
||||
* @session: the object which received the signal
|
||||
|
@ -233,8 +229,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SSRC_SDES] =
|
||||
g_signal_new ("on-ssrc-sdes", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_ssrc_sdes),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-bye-ssrc:
|
||||
* @session: the object which received the signal
|
||||
|
@ -245,8 +240,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_BYE_SSRC] =
|
||||
g_signal_new ("on-bye-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_bye_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-bye-timeout:
|
||||
* @session: the object which received the signal
|
||||
|
@ -257,8 +251,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_BYE_TIMEOUT] =
|
||||
g_signal_new ("on-bye-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_bye_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-timeout:
|
||||
* @session: the object which received the signal
|
||||
|
@ -269,8 +262,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_TIMEOUT] =
|
||||
g_signal_new ("on-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
/**
|
||||
* RTPSession::on-sender-timeout:
|
||||
* @session: the object which received the signal
|
||||
|
@ -281,8 +273,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SENDER_TIMEOUT] =
|
||||
g_signal_new ("on-sender-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_sender_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
|
||||
/**
|
||||
* RTPSession::on-sending-rtcp
|
||||
|
@ -299,7 +290,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SENDING_RTCP] =
|
||||
g_signal_new ("on-sending-rtcp", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_sending_rtcp),
|
||||
accumulate_trues, NULL, g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 2,
|
||||
accumulate_trues, NULL, NULL, G_TYPE_BOOLEAN, 2,
|
||||
GST_TYPE_BUFFER | G_SIGNAL_TYPE_STATIC_SCOPE, G_TYPE_BOOLEAN);
|
||||
|
||||
/**
|
||||
|
@ -316,8 +307,8 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_APP_RTCP] =
|
||||
g_signal_new ("on-app-rtcp", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_app_rtcp),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 4,
|
||||
G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, GST_TYPE_BUFFER);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 4, G_TYPE_UINT, G_TYPE_UINT,
|
||||
G_TYPE_STRING, GST_TYPE_BUFFER);
|
||||
|
||||
/**
|
||||
* RTPSession::on-feedback-rtcp:
|
||||
|
@ -335,8 +326,8 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_FEEDBACK_RTCP] =
|
||||
g_signal_new ("on-feedback-rtcp", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_feedback_rtcp),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 5, G_TYPE_UINT,
|
||||
G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, GST_TYPE_BUFFER);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 5, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT,
|
||||
G_TYPE_UINT, GST_TYPE_BUFFER);
|
||||
|
||||
/**
|
||||
* RTPSession::send-rtcp:
|
||||
|
@ -353,7 +344,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
g_signal_new ("send-rtcp", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (RTPSessionClass, send_rtcp), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_UINT64);
|
||||
NULL, G_TYPE_NONE, 1, G_TYPE_UINT64);
|
||||
|
||||
/**
|
||||
* RTPSession::send-rtcp-full:
|
||||
|
@ -375,7 +366,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
g_signal_new ("send-rtcp-full", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (RTPSessionClass, send_rtcp), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 1, G_TYPE_UINT64);
|
||||
NULL, G_TYPE_BOOLEAN, 1, G_TYPE_UINT64);
|
||||
|
||||
/**
|
||||
* RTPSession::on-receiving-rtcp
|
||||
|
@ -390,7 +381,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_RECEIVING_RTCP] =
|
||||
g_signal_new ("on-receiving-rtcp", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_receiving_rtcp),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1,
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1,
|
||||
GST_TYPE_BUFFER | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
|
@ -405,8 +396,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_NEW_SENDER_SSRC] =
|
||||
g_signal_new ("on-new-sender-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_new_sender_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
RTP_TYPE_SOURCE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
|
||||
/**
|
||||
* RTPSession::on-sender-ssrc-active:
|
||||
|
@ -420,7 +410,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SENDER_SSRC_ACTIVE] =
|
||||
g_signal_new ("on-sender-ssrc-active", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass,
|
||||
on_sender_ssrc_active), NULL, NULL, g_cclosure_marshal_VOID__OBJECT,
|
||||
on_sender_ssrc_active), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, RTP_TYPE_SOURCE);
|
||||
|
||||
/**
|
||||
|
@ -452,7 +442,7 @@ rtp_session_class_init (RTPSessionClass * klass)
|
|||
rtp_session_signals[SIGNAL_ON_SENDING_NACKS] =
|
||||
g_signal_new ("on-sending-nacks", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RTPSessionClass, on_sending_nacks),
|
||||
g_signal_accumulator_first_wins, NULL, g_cclosure_marshal_generic,
|
||||
g_signal_accumulator_first_wins, NULL, NULL,
|
||||
G_TYPE_UINT, 4, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_ARRAY,
|
||||
GST_TYPE_BUFFER | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
|
|
|
@ -229,14 +229,13 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
*/
|
||||
gst_rtp_dec_signals[SIGNAL_REQUEST_PT_MAP] =
|
||||
g_signal_new ("request-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, request_pt_map),
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_CAPS, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, request_pt_map), NULL,
|
||||
NULL, NULL, GST_TYPE_CAPS, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
gst_rtp_dec_signals[SIGNAL_CLEAR_PT_MAP] =
|
||||
g_signal_new ("clear-pt-map", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, clear_pt_map),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, clear_pt_map), NULL,
|
||||
NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstRTPDec::on-new-ssrc:
|
||||
|
@ -248,9 +247,8 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
*/
|
||||
gst_rtp_dec_signals[SIGNAL_ON_NEW_SSRC] =
|
||||
g_signal_new ("on-new-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_new_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_new_ssrc), NULL,
|
||||
NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRTPDec::on-ssrc_collision:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -262,8 +260,7 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
gst_rtp_dec_signals[SIGNAL_ON_SSRC_COLLISION] =
|
||||
g_signal_new ("on-ssrc-collision", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_ssrc_collision),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRTPDec::on-ssrc_validated:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -275,8 +272,7 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
gst_rtp_dec_signals[SIGNAL_ON_SSRC_VALIDATED] =
|
||||
g_signal_new ("on-ssrc-validated", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_ssrc_validated),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
/**
|
||||
* GstRTPDec::on-bye-ssrc:
|
||||
|
@ -288,9 +284,8 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
*/
|
||||
gst_rtp_dec_signals[SIGNAL_ON_BYE_SSRC] =
|
||||
g_signal_new ("on-bye-ssrc", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_bye_ssrc),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_bye_ssrc), NULL,
|
||||
NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRTPDec::on-bye-timeout:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -302,8 +297,7 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
gst_rtp_dec_signals[SIGNAL_ON_BYE_TIMEOUT] =
|
||||
g_signal_new ("on-bye-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_bye_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
/**
|
||||
* GstRTPDec::on-timeout:
|
||||
* @rtpbin: the object which received the signal
|
||||
|
@ -314,9 +308,8 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
*/
|
||||
gst_rtp_dec_signals[SIGNAL_ON_TIMEOUT] =
|
||||
g_signal_new ("on-timeout", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_timeout),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
|
||||
G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTPDecClass, on_timeout), NULL,
|
||||
NULL, NULL, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
gstelement_class->provide_clock =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_dec_provide_clock);
|
||||
|
|
|
@ -1013,8 +1013,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
*/
|
||||
gst_rtspsrc_signals[SIGNAL_HANDLE_REQUEST] =
|
||||
g_signal_new ("handle-request", G_TYPE_FROM_CLASS (klass), 0,
|
||||
0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_POINTER, G_TYPE_POINTER);
|
||||
0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER);
|
||||
|
||||
/**
|
||||
* GstRTSPSrc::on-sdp:
|
||||
|
@ -1034,7 +1033,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
*/
|
||||
gst_rtspsrc_signals[SIGNAL_ON_SDP] =
|
||||
g_signal_new ("on-sdp", G_TYPE_FROM_CLASS (klass), 0,
|
||||
0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1,
|
||||
0, NULL, NULL, NULL, G_TYPE_NONE, 1,
|
||||
GST_TYPE_SDP_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
|
@ -1054,9 +1053,8 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_SELECT_STREAM] =
|
||||
g_signal_new_class_handler ("select-stream", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP,
|
||||
(GCallback) default_select_stream, select_stream_accum, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 2, G_TYPE_UINT,
|
||||
GST_TYPE_CAPS);
|
||||
(GCallback) default_select_stream, select_stream_accum, NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 2, G_TYPE_UINT, GST_TYPE_CAPS);
|
||||
/**
|
||||
* GstRTSPSrc::new-manager:
|
||||
* @rtspsrc: a #GstRTSPSrc
|
||||
|
@ -1069,8 +1067,8 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
*/
|
||||
gst_rtspsrc_signals[SIGNAL_NEW_MANAGER] =
|
||||
g_signal_new_class_handler ("new-manager", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP, 0, NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* GstRTSPSrc::request-rtcp-key:
|
||||
|
@ -1127,9 +1125,8 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_BEFORE_SEND] =
|
||||
g_signal_new_class_handler ("before-send", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP,
|
||||
(GCallback) default_before_send, before_send_accum, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_BOOLEAN,
|
||||
1, GST_TYPE_RTSP_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
(GCallback) default_before_send, before_send_accum, NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 1, GST_TYPE_RTSP_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstRTSPSrc::push-backchannel-buffer:
|
||||
|
@ -1141,8 +1138,8 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_PUSH_BACKCHANNEL_BUFFER] =
|
||||
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);
|
||||
push_backchannel_buffer), NULL, NULL, NULL,
|
||||
GST_TYPE_FLOW_RETURN, 2, G_TYPE_UINT, GST_TYPE_BUFFER);
|
||||
|
||||
/**
|
||||
* GstRTSPSrc::get-parameter:
|
||||
|
@ -1159,7 +1156,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_GET_PARAMETER] =
|
||||
g_signal_new ("get-parameter", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRTSPSrcClass,
|
||||
get_parameter), NULL, NULL, g_cclosure_marshal_generic,
|
||||
get_parameter), NULL, NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 3, G_TYPE_STRING, G_TYPE_STRING, GST_TYPE_PROMISE);
|
||||
|
||||
/**
|
||||
|
@ -1177,7 +1174,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_GET_PARAMETERS] =
|
||||
g_signal_new ("get-parameters", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRTSPSrcClass,
|
||||
get_parameters), NULL, NULL, g_cclosure_marshal_generic,
|
||||
get_parameters), NULL, NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 3, G_TYPE_STRV, G_TYPE_STRING, GST_TYPE_PROMISE);
|
||||
|
||||
/**
|
||||
|
@ -1196,9 +1193,8 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
gst_rtspsrc_signals[SIGNAL_SET_PARAMETER] =
|
||||
g_signal_new ("set-parameter", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstRTSPSrcClass,
|
||||
set_parameter), NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
|
||||
GST_TYPE_PROMISE);
|
||||
set_parameter), NULL, NULL, NULL, G_TYPE_BOOLEAN, 4, G_TYPE_STRING,
|
||||
G_TYPE_STRING, G_TYPE_STRING, GST_TYPE_PROMISE);
|
||||
|
||||
gstelement_class->send_event = gst_rtspsrc_send_event;
|
||||
gstelement_class->provide_clock = gst_rtspsrc_provide_clock;
|
||||
|
|
|
@ -105,8 +105,7 @@ gst_dynudpsink_class_init (GstDynUDPSinkClass * klass)
|
|||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstDynUDPSinkClass, get_stats),
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
NULL, NULL, NULL, GST_TYPE_STRUCTURE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SOCKET,
|
||||
g_param_spec_object ("socket", "Socket",
|
||||
|
|
|
@ -175,8 +175,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("add", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, add),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::remove:
|
||||
* @gstmultiudpsink: the sink on which the signal is emitted
|
||||
|
@ -190,8 +189,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("remove", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, remove),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::clear:
|
||||
* @gstmultiudpsink: the sink on which the signal is emitted
|
||||
|
@ -201,8 +199,8 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
gst_multiudpsink_signals[SIGNAL_CLEAR] =
|
||||
g_signal_new ("clear", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, clear),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0);
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, clear), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
/**
|
||||
* GstMultiUDPSink::get-stats:
|
||||
* @gstmultiudpsink: the sink on which the signal is emitted
|
||||
|
@ -219,8 +217,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiUDPSinkClass, get_stats),
|
||||
NULL, NULL, g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
NULL, NULL, NULL, GST_TYPE_STRUCTURE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::client-added:
|
||||
* @gstmultiudpsink: the sink emitting the signal
|
||||
|
@ -233,8 +230,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
gst_multiudpsink_signals[SIGNAL_CLIENT_ADDED] =
|
||||
g_signal_new ("client-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiUDPSinkClass, client_added),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING, G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiUDPSink::client-removed:
|
||||
* @gstmultiudpsink: the sink emitting the signal
|
||||
|
@ -247,7 +243,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
|
|||
gst_multiudpsink_signals[SIGNAL_CLIENT_REMOVED] =
|
||||
g_signal_new ("client-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiUDPSinkClass,
|
||||
client_removed), NULL, NULL, g_cclosure_marshal_generic,
|
||||
client_removed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
|
||||
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BYTES_TO_SERVE,
|
||||
|
|
|
@ -96,8 +96,7 @@ gst_tuner_default_init (GstTunerInterface * iface)
|
|||
g_signal_new ("norm-changed",
|
||||
GST_TYPE_TUNER, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerInterface, norm_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_TUNER_NORM);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_TUNER_NORM);
|
||||
/**
|
||||
* GstTuner::channel-changed:
|
||||
* @tuner: The element providing the GstTuner interface
|
||||
|
@ -109,9 +108,7 @@ gst_tuner_default_init (GstTunerInterface * iface)
|
|||
g_signal_new ("channel-changed",
|
||||
GST_TYPE_TUNER, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerInterface, channel_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
GST_TYPE_TUNER_CHANNEL);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_TUNER_CHANNEL);
|
||||
/**
|
||||
* GstTuner::frequency-changed:
|
||||
* @tuner: The element providing the GstTuner interface
|
||||
|
@ -123,9 +120,7 @@ gst_tuner_default_init (GstTunerInterface * iface)
|
|||
g_signal_new ("frequency-changed",
|
||||
GST_TYPE_TUNER, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerInterface, frequency_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 2, GST_TYPE_TUNER_CHANNEL,
|
||||
G_TYPE_ULONG);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, GST_TYPE_TUNER_CHANNEL, G_TYPE_ULONG);
|
||||
/**
|
||||
* GstTuner::signal-changed:
|
||||
* @tuner: The element providing the GstTuner interface
|
||||
|
@ -140,9 +135,7 @@ gst_tuner_default_init (GstTunerInterface * iface)
|
|||
g_signal_new ("signal-changed",
|
||||
GST_TYPE_TUNER, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerInterface, signal_changed),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 2, GST_TYPE_TUNER_CHANNEL,
|
||||
G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, GST_TYPE_TUNER_CHANNEL, G_TYPE_INT);
|
||||
|
||||
initialized = TRUE;
|
||||
}
|
||||
|
|
|
@ -69,9 +69,8 @@ gst_tuner_channel_class_init (GstTunerChannelClass * klass)
|
|||
signals[SIGNAL_FREQUENCY_CHANGED] =
|
||||
g_signal_new ("frequency-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerChannelClass,
|
||||
frequency_changed),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__ULONG, G_TYPE_NONE, 1, G_TYPE_ULONG);
|
||||
G_STRUCT_OFFSET (GstTunerChannelClass, frequency_changed),
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_ULONG);
|
||||
/**
|
||||
* GstTunerChannel::signal-changed:
|
||||
* @tunerchannel: The #GstTunerChannel
|
||||
|
@ -84,9 +83,8 @@ gst_tuner_channel_class_init (GstTunerChannelClass * klass)
|
|||
signals[SIGNAL_SIGNAL_CHANGED] =
|
||||
g_signal_new ("signal-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTunerChannelClass,
|
||||
signal_changed),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstTunerChannelClass, signal_changed),
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
object_klass->dispose = gst_tuner_channel_dispose;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue