mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +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
e0fadd6fdd
commit
0314b482f3
28 changed files with 141 additions and 185 deletions
|
@ -180,7 +180,7 @@ gst_cd_paranoia_src_class_init (GstCdParanoiaSrcClass * klass)
|
|||
g_signal_new ("transport-error", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstCdParanoiaSrcClass, transport_error),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstCdParanoiaSrc::uncorrected-error:
|
||||
* @cdparanoia: The CdParanoia instance
|
||||
|
@ -193,7 +193,7 @@ gst_cd_paranoia_src_class_init (GstCdParanoiaSrcClass * klass)
|
|||
g_signal_new ("uncorrected-error", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstCdParanoiaSrcClass, uncorrected_error),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -108,7 +108,7 @@ gst_gl_filter_app_class_init (GstGLFilterAppClass * klass)
|
|||
*/
|
||||
gst_gl_filter_app_signals[CLIENT_DRAW_SIGNAL] =
|
||||
g_signal_new ("client-draw", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
|
||||
G_TYPE_BOOLEAN, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
gst_element_class_set_metadata (element_class,
|
||||
|
|
|
@ -100,8 +100,7 @@ gst_gl_filter_bin_class_init (GstGLFilterBinClass * klass)
|
|||
*/
|
||||
gst_gl_filter_bin_signals[SIGNAL_CREATE_ELEMENT] =
|
||||
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 0);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
|
||||
|
||||
gst_element_class_set_metadata (element_class,
|
||||
"GL Filter Bin", "Filter/Video",
|
||||
|
|
|
@ -158,8 +158,7 @@ gst_gl_filtershader_class_init (GstGLFilterShaderClass * klass)
|
|||
*/
|
||||
gst_gl_shader_signals[SIGNAL_CREATE_SHADER] =
|
||||
g_signal_new ("create-shader", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_GL_SHADER, 0);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_GL_SHADER, 0);
|
||||
|
||||
gst_element_class_set_metadata (element_class,
|
||||
"OpenGL fragment shader filter", "Filter/Effect",
|
||||
|
|
|
@ -290,13 +290,13 @@ gst_gl_image_sink_bin_class_init (GstGLImageSinkBinClass * klass)
|
|||
|
||||
gst_gl_image_sink_bin_signals[SIGNAL_BIN_CLIENT_DRAW] =
|
||||
g_signal_new ("client-draw", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 2,
|
||||
GST_TYPE_GL_CONTEXT, GST_TYPE_SAMPLE);
|
||||
0, NULL, NULL, NULL, G_TYPE_BOOLEAN, 2, GST_TYPE_GL_CONTEXT,
|
||||
GST_TYPE_SAMPLE);
|
||||
|
||||
gst_gl_image_sink_bin_signals[SIGNAL_BIN_CLIENT_RESHAPE] =
|
||||
g_signal_new ("client-reshape", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 3, GST_TYPE_GL_CONTEXT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_BOOLEAN, 3,
|
||||
GST_TYPE_GL_CONTEXT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
}
|
||||
|
||||
#define GST_GLIMAGE_SINK_GET_LOCK(glsink) \
|
||||
|
@ -719,8 +719,8 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
|
|||
*/
|
||||
gst_glimage_sink_signals[CLIENT_DRAW_SIGNAL] =
|
||||
g_signal_new ("client-draw", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 2, GST_TYPE_GL_CONTEXT, GST_TYPE_SAMPLE);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_BOOLEAN, 2,
|
||||
GST_TYPE_GL_CONTEXT, GST_TYPE_SAMPLE);
|
||||
|
||||
/**
|
||||
* GstGLImageSink::client-reshape:
|
||||
|
@ -736,8 +736,8 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
|
|||
*/
|
||||
gst_glimage_sink_signals[CLIENT_RESHAPE_SIGNAL] =
|
||||
g_signal_new ("client-reshape", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 3, GST_TYPE_GL_CONTEXT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_BOOLEAN, 3,
|
||||
GST_TYPE_GL_CONTEXT, G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_glimage_sink_template);
|
||||
|
|
|
@ -214,8 +214,7 @@ gst_gl_mixer_bin_class_init (GstGLMixerBinClass * klass)
|
|||
*/
|
||||
gst_gl_mixer_bin_signals[SIGNAL_CREATE_ELEMENT] =
|
||||
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 0);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
|
||||
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
|
||||
|
|
|
@ -210,8 +210,7 @@ gst_gl_sink_bin_class_init (GstGLSinkBinClass * klass)
|
|||
*/
|
||||
gst_gl_sink_bin_signals[SIGNAL_CREATE_ELEMENT] =
|
||||
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 0);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
|
||||
|
||||
gst_element_class_set_metadata (element_class,
|
||||
"GL Sink Bin", "Sink/Video",
|
||||
|
|
|
@ -96,8 +96,7 @@ gst_gl_src_bin_class_init (GstGLSrcBinClass * klass)
|
|||
*/
|
||||
gst_gl_src_bin_signals[SIGNAL_CREATE_ELEMENT] =
|
||||
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_ELEMENT, 0);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
|
||||
|
||||
gst_element_class_set_metadata (element_class,
|
||||
"GL Src Bin", "Src/Video",
|
||||
|
|
|
@ -264,7 +264,7 @@ gst_app_sink_class_init (GstAppSinkClass * klass)
|
|||
gst_app_sink_signals[SIGNAL_EOS] =
|
||||
g_signal_new ("eos", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAppSinkClass, eos),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
/**
|
||||
* GstAppSink::new-preroll:
|
||||
* @appsink: the appsink element that emitted the signal
|
||||
|
|
|
@ -441,7 +441,7 @@ gst_app_src_class_init (GstAppSrcClass * klass)
|
|||
gst_app_src_signals[SIGNAL_ENOUGH_DATA] =
|
||||
g_signal_new ("enough-data", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAppSrcClass, enough_data),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstAppSrc::seek-data:
|
||||
|
|
|
@ -172,8 +172,8 @@ gst_gl_display_class_init (GstGLDisplayClass * klass)
|
|||
*/
|
||||
gst_gl_display_signals[CREATE_CONTEXT] =
|
||||
g_signal_new ("create-context", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_GL_CONTEXT, 1, GST_TYPE_GL_CONTEXT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_GL_CONTEXT, 1,
|
||||
GST_TYPE_GL_CONTEXT);
|
||||
|
||||
klass->get_handle = gst_gl_display_default_get_handle;
|
||||
klass->get_foreign_display = gst_gl_display_default_get_foreign_display;
|
||||
|
|
|
@ -212,8 +212,8 @@ gst_gl_window_class_init (GstGLWindowClass * klass)
|
|||
*/
|
||||
gst_gl_window_signals[EVENT_MOUSE_SIGNAL] =
|
||||
g_signal_new ("mouse-event", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_INT, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 4, G_TYPE_STRING,
|
||||
G_TYPE_INT, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
|
||||
|
||||
/**
|
||||
* GstGLWindow::key-event:
|
||||
|
@ -227,8 +227,8 @@ gst_gl_window_class_init (GstGLWindowClass * klass)
|
|||
*/
|
||||
gst_gl_window_signals[EVENT_KEY_SIGNAL] =
|
||||
g_signal_new ("key-event", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING,
|
||||
G_TYPE_STRING);
|
||||
|
||||
_init_debug ();
|
||||
}
|
||||
|
|
|
@ -270,8 +270,8 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
|
|||
*/
|
||||
gst_discoverer_signals[SIGNAL_FINISHED] =
|
||||
g_signal_new ("finished", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, finished),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, finished), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstDiscoverer::starting:
|
||||
|
@ -281,8 +281,8 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
|
|||
*/
|
||||
gst_discoverer_signals[SIGNAL_STARTING] =
|
||||
g_signal_new ("starting", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, starting),
|
||||
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, starting), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstDiscoverer::discovered:
|
||||
|
@ -302,8 +302,7 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
|
|||
*/
|
||||
gst_discoverer_signals[SIGNAL_DISCOVERED] =
|
||||
g_signal_new ("discovered", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, discovered),
|
||||
NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_STRUCT_OFFSET (GstDiscovererClass, discovered), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 2, GST_TYPE_DISCOVERER_INFO,
|
||||
G_TYPE_ERROR | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
|
@ -323,7 +322,7 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
|
|||
gst_discoverer_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDiscovererClass, source_setup),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -79,8 +79,8 @@ gst_rtsp_extension_iface_init (GstRTSPExtension * iface)
|
|||
gst_rtsp_extension_signals[SIGNAL_SEND] =
|
||||
g_signal_new ("send", G_TYPE_FROM_CLASS (iface),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPExtensionInterface,
|
||||
send), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_RTSP_RESULT, 2, G_TYPE_POINTER, G_TYPE_POINTER);
|
||||
send), NULL, NULL, NULL, GST_TYPE_RTSP_RESULT, 2, G_TYPE_POINTER,
|
||||
G_TYPE_POINTER);
|
||||
initialized = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -399,8 +399,7 @@ gst_encode_bin_class_init (GstEncodeBinClass * klass)
|
|||
gst_encode_bin_signals[SIGNAL_REQUEST_PAD] =
|
||||
g_signal_new ("request-pad", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstEncodeBinClass,
|
||||
request_pad), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_PAD, 1, GST_TYPE_CAPS);
|
||||
request_pad), NULL, NULL, NULL, GST_TYPE_PAD, 1, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstEncodeBin::request-profile-pad
|
||||
|
@ -417,8 +416,8 @@ gst_encode_bin_class_init (GstEncodeBinClass * klass)
|
|||
gst_encode_bin_signals[SIGNAL_REQUEST_PROFILE_PAD] =
|
||||
g_signal_new ("request-profile-pad", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstEncodeBinClass,
|
||||
request_profile_pad), NULL, NULL, g_cclosure_marshal_generic,
|
||||
GST_TYPE_PAD, 1, G_TYPE_STRING);
|
||||
request_profile_pad), NULL, NULL, NULL, GST_TYPE_PAD, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
klass->request_pad = gst_encode_bin_request_pad_signal;
|
||||
klass->request_profile_pad = gst_encode_bin_request_profile_pad_signal;
|
||||
|
|
|
@ -127,12 +127,7 @@ gst_overlay_composition_class_init (GstOverlayCompositionClass * klass)
|
|||
*/
|
||||
overlay_composition_signals[SIGNAL_DRAW] =
|
||||
g_signal_new ("draw",
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
G_TYPE_FROM_CLASS (klass), 0, 0, NULL, NULL, NULL,
|
||||
GST_TYPE_VIDEO_OVERLAY_COMPOSITION, 1, GST_TYPE_SAMPLE);
|
||||
|
||||
/**
|
||||
|
@ -150,10 +145,8 @@ gst_overlay_composition_class_init (GstOverlayCompositionClass * klass)
|
|||
*/
|
||||
overlay_composition_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, 3, GST_TYPE_CAPS,
|
||||
G_TYPE_UINT, G_TYPE_UINT);
|
||||
G_TYPE_FROM_CLASS (klass), 0, 0, NULL, NULL, NULL, G_TYPE_NONE, 3,
|
||||
GST_TYPE_CAPS, G_TYPE_UINT, G_TYPE_UINT);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -724,8 +724,7 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
gst_decode_bin_signals[SIGNAL_UNKNOWN_TYPE] =
|
||||
g_signal_new ("unknown-type", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, unknown_type),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstDecodeBin::autoplug-continue:
|
||||
|
@ -748,8 +747,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
gst_decode_bin_signals[SIGNAL_AUTOPLUG_CONTINUE] =
|
||||
g_signal_new ("autoplug-continue", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_continue),
|
||||
_gst_boolean_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
_gst_boolean_accumulator, NULL, NULL, G_TYPE_BOOLEAN, 2, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstDecodeBin::autoplug-factories:
|
||||
|
@ -778,8 +777,7 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-factories", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass,
|
||||
autoplug_factories), _gst_array_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstDecodeBin::autoplug-sort:
|
||||
|
@ -808,8 +806,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_sort),
|
||||
_gst_array_hasvalue_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstDecodeBin::autoplug-select:
|
||||
|
@ -848,8 +846,7 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-select", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_select),
|
||||
_gst_select_accumulator, NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
GST_TYPE_AUTOPLUG_SELECT_RESULT, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
NULL, GST_TYPE_AUTOPLUG_SELECT_RESULT, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
GST_TYPE_ELEMENT_FACTORY);
|
||||
|
||||
/**
|
||||
|
@ -869,9 +866,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
gst_decode_bin_signals[SIGNAL_AUTOPLUG_QUERY] =
|
||||
g_signal_new ("autoplug-query", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, autoplug_query),
|
||||
_gst_boolean_or_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 3, GST_TYPE_PAD, GST_TYPE_ELEMENT,
|
||||
GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
_gst_boolean_or_accumulator, NULL, NULL, G_TYPE_BOOLEAN, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_ELEMENT, GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstDecodeBin::drained
|
||||
|
@ -882,7 +878,7 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
|
|||
gst_decode_bin_signals[SIGNAL_DRAINED] =
|
||||
g_signal_new ("drained", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodeBinClass, drained),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
g_object_class_install_property (gobject_klass, PROP_CAPS,
|
||||
g_param_spec_boxed ("caps", "Caps", "The caps on which to stop decoding.",
|
||||
|
|
|
@ -567,7 +567,7 @@ gst_decodebin3_class_init (GstDecodebin3Class * klass)
|
|||
gst_decodebin3_signals[SIGNAL_SELECT_STREAM] =
|
||||
g_signal_new ("select-stream", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDecodebin3Class, select_stream),
|
||||
_gst_int_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
_gst_int_accumulator, NULL, NULL,
|
||||
G_TYPE_INT, 2, GST_TYPE_STREAM_COLLECTION, GST_TYPE_STREAM);
|
||||
|
||||
/**
|
||||
|
@ -578,8 +578,7 @@ gst_decodebin3_class_init (GstDecodebin3Class * klass)
|
|||
*/
|
||||
gst_decodebin3_signals[SIGNAL_ABOUT_TO_FINISH] =
|
||||
g_signal_new ("about-to-finish", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE,
|
||||
0, G_TYPE_NONE);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
|
||||
element_class->request_new_pad =
|
||||
|
|
|
@ -638,8 +638,7 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
gst_parse_bin_signals[SIGNAL_UNKNOWN_TYPE] =
|
||||
g_signal_new ("unknown-type", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, unknown_type),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstParseBin::autoplug-continue:
|
||||
|
@ -662,8 +661,8 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
gst_parse_bin_signals[SIGNAL_AUTOPLUG_CONTINUE] =
|
||||
g_signal_new ("autoplug-continue", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, autoplug_continue),
|
||||
_gst_boolean_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
_gst_boolean_accumulator, NULL, NULL, G_TYPE_BOOLEAN, 2, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstParseBin::autoplug-factories:
|
||||
|
@ -692,8 +691,7 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
g_signal_new ("autoplug-factories", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass,
|
||||
autoplug_factories), _gst_array_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstParseBin::autoplug-sort:
|
||||
|
@ -722,8 +720,8 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, autoplug_sort),
|
||||
_gst_array_hasvalue_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstParseBin::autoplug-select:
|
||||
|
@ -761,10 +759,8 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
gst_parse_bin_signals[SIGNAL_AUTOPLUG_SELECT] =
|
||||
g_signal_new ("autoplug-select", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, autoplug_select),
|
||||
_gst_select_accumulator, NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
GST_TYPE_AUTOPLUG_SELECT_RESULT, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
GST_TYPE_ELEMENT_FACTORY);
|
||||
_gst_select_accumulator, NULL, NULL, GST_TYPE_AUTOPLUG_SELECT_RESULT, 3,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS, GST_TYPE_ELEMENT_FACTORY);
|
||||
|
||||
/**
|
||||
* GstParseBin::autoplug-query:
|
||||
|
@ -784,9 +780,8 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
gst_parse_bin_signals[SIGNAL_AUTOPLUG_QUERY] =
|
||||
g_signal_new ("autoplug-query", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, autoplug_query),
|
||||
_gst_boolean_or_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 3, GST_TYPE_PAD, GST_TYPE_ELEMENT,
|
||||
GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
_gst_boolean_or_accumulator, NULL, NULL, G_TYPE_BOOLEAN, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_ELEMENT, GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstParseBin::drained:
|
||||
|
@ -797,7 +792,7 @@ gst_parse_bin_class_init (GstParseBinClass * klass)
|
|||
gst_parse_bin_signals[SIGNAL_DRAINED] =
|
||||
g_signal_new ("drained", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstParseBinClass, drained),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
g_object_class_install_property (gobject_klass, PROP_SUBTITLE_ENCODING,
|
||||
g_param_spec_string ("subtitle-encoding", "subtitle encoding",
|
||||
|
|
|
@ -1039,8 +1039,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_ABOUT_TO_FINISH] =
|
||||
g_signal_new ("about-to-finish", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, about_to_finish), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, about_to_finish), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstPlayBin::video-changed:
|
||||
|
@ -1058,8 +1058,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_VIDEO_CHANGED] =
|
||||
g_signal_new ("video-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, video_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, video_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
/**
|
||||
* GstPlayBin::audio-changed
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1076,8 +1076,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_AUDIO_CHANGED] =
|
||||
g_signal_new ("audio-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, audio_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, audio_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
/**
|
||||
* GstPlayBin::text-changed:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1094,8 +1094,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_TEXT_CHANGED] =
|
||||
g_signal_new ("text-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, text_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, text_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstPlayBin::video-tags-changed:
|
||||
|
@ -1112,8 +1112,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_VIDEO_TAGS_CHANGED] =
|
||||
g_signal_new ("video-tags-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, video_tags_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, video_tags_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
/**
|
||||
* GstPlayBin::audio-tags-changed:
|
||||
|
@ -1130,8 +1130,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_AUDIO_TAGS_CHANGED] =
|
||||
g_signal_new ("audio-tags-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, audio_tags_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, audio_tags_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
/**
|
||||
* GstPlayBin::text-tags-changed:
|
||||
|
@ -1148,8 +1148,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_TEXT_TAGS_CHANGED] =
|
||||
g_signal_new ("text-tags-changed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, text_tags_changed), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, text_tags_changed), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
/**
|
||||
* GstPlayBin::source-setup:
|
||||
|
@ -1167,8 +1167,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
*/
|
||||
gst_play_bin_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* GstPlayBin::element-setup:
|
||||
|
@ -1188,8 +1187,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
*/
|
||||
gst_play_bin_signals[SIGNAL_ELEMENT_SETUP] =
|
||||
g_signal_new ("element-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* GstPlayBin::get-video-tags:
|
||||
|
@ -1205,8 +1203,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_VIDEO_TAGS] =
|
||||
g_signal_new ("get-video-tags", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_video_tags), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_video_tags), NULL, NULL, NULL,
|
||||
GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstPlayBin::get-audio-tags:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1221,8 +1219,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_AUDIO_TAGS] =
|
||||
g_signal_new ("get-audio-tags", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_audio_tags), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_audio_tags), NULL, NULL, NULL,
|
||||
GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstPlayBin::get-text-tags:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1237,8 +1235,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_TEXT_TAGS] =
|
||||
g_signal_new ("get-text-tags", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_text_tags), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_text_tags), NULL, NULL, NULL,
|
||||
GST_TYPE_TAG_LIST, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstPlayBin::convert-sample:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1257,8 +1255,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_CONVERT_SAMPLE] =
|
||||
g_signal_new ("convert-sample", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, convert_sample), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, convert_sample), NULL, NULL, NULL,
|
||||
GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstPlayBin::get-video-pad:
|
||||
|
@ -1275,8 +1273,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_VIDEO_PAD] =
|
||||
g_signal_new ("get-video-pad", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_video_pad), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_video_pad), NULL, NULL, NULL,
|
||||
GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstPlayBin::get-audio-pad:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1292,8 +1290,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_AUDIO_PAD] =
|
||||
g_signal_new ("get-audio-pad", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_audio_pad), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_audio_pad), NULL, NULL, NULL,
|
||||
GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstPlayBin::get-text-pad:
|
||||
* @playbin: a #GstPlayBin
|
||||
|
@ -1309,8 +1307,8 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
|
|||
gst_play_bin_signals[SIGNAL_GET_TEXT_PAD] =
|
||||
g_signal_new ("get-text-pad", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_text_pad), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
G_STRUCT_OFFSET (GstPlayBinClass, get_text_pad), NULL, NULL, NULL,
|
||||
GST_TYPE_PAD, 1, G_TYPE_INT);
|
||||
|
||||
klass->get_video_tags = gst_play_bin_get_video_tags;
|
||||
klass->get_audio_tags = gst_play_bin_get_audio_tags;
|
||||
|
|
|
@ -986,7 +986,7 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
|
|||
g_signal_new ("about-to-finish", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPlayBin3Class, about_to_finish), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1005,8 +1005,7 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
|
|||
*/
|
||||
gst_play_bin3_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* GstPlayBin3::element-setup:
|
||||
|
@ -1026,8 +1025,7 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
|
|||
*/
|
||||
gst_play_bin3_signals[SIGNAL_ELEMENT_SETUP] =
|
||||
g_signal_new ("element-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
/**
|
||||
* GstPlayBin3::convert-sample
|
||||
|
@ -1048,7 +1046,7 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
|
|||
g_signal_new ("convert-sample", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlayBin3Class, convert_sample), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
NULL, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
|
||||
klass->convert_sample = gst_play_bin3_convert_sample;
|
||||
|
||||
|
|
|
@ -614,8 +614,7 @@ gst_play_sink_class_init (GstPlaySinkClass * klass)
|
|||
|
||||
g_signal_new ("reconfigure", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstPlaySinkClass,
|
||||
reconfigure), NULL, NULL, g_cclosure_marshal_generic, G_TYPE_BOOLEAN,
|
||||
0, G_TYPE_NONE);
|
||||
reconfigure), NULL, NULL, NULL, G_TYPE_BOOLEAN, 0, G_TYPE_NONE);
|
||||
/**
|
||||
* GstPlaySink::convert-sample:
|
||||
* @playsink: a #GstPlaySink
|
||||
|
@ -634,7 +633,7 @@ gst_play_sink_class_init (GstPlaySinkClass * klass)
|
|||
g_signal_new ("convert-sample", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstPlaySinkClass, convert_sample), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
NULL, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
|
||||
|
||||
gst_element_class_add_static_pad_template (gstelement_klass,
|
||||
&audiorawtemplate);
|
||||
|
|
|
@ -503,8 +503,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
gst_uri_decode_bin_signals[SIGNAL_UNKNOWN_TYPE] =
|
||||
g_signal_new ("unknown-type", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, unknown_type),
|
||||
NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, NULL, NULL, G_TYPE_NONE, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::autoplug-continue:
|
||||
|
@ -528,8 +527,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-continue", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass,
|
||||
autoplug_continue), _gst_boolean_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 2, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS);
|
||||
NULL, G_TYPE_BOOLEAN, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::autoplug-factories:
|
||||
|
@ -558,8 +556,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-factories", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass,
|
||||
autoplug_factories), _gst_array_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 2,
|
||||
GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 2, GST_TYPE_PAD, GST_TYPE_CAPS);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::autoplug-sort:
|
||||
|
@ -588,8 +585,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-sort", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, autoplug_sort),
|
||||
_gst_array_hasvalue_accumulator, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_CAPS, G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
NULL, G_TYPE_VALUE_ARRAY, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
G_TYPE_VALUE_ARRAY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::autoplug-select:
|
||||
|
@ -628,8 +625,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
g_signal_new ("autoplug-select", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass,
|
||||
autoplug_select), _gst_select_accumulator, NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
GST_TYPE_AUTOPLUG_SELECT_RESULT, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
NULL, GST_TYPE_AUTOPLUG_SELECT_RESULT, 3, GST_TYPE_PAD, GST_TYPE_CAPS,
|
||||
GST_TYPE_ELEMENT_FACTORY);
|
||||
|
||||
/**
|
||||
|
@ -649,9 +645,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
gst_uri_decode_bin_signals[SIGNAL_AUTOPLUG_QUERY] =
|
||||
g_signal_new ("autoplug-query", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBinClass, autoplug_query),
|
||||
_gst_boolean_or_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_BOOLEAN, 3, GST_TYPE_PAD, GST_TYPE_ELEMENT,
|
||||
GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
_gst_boolean_or_accumulator, NULL, NULL, G_TYPE_BOOLEAN, 3, GST_TYPE_PAD,
|
||||
GST_TYPE_ELEMENT, GST_TYPE_QUERY | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::drained:
|
||||
|
@ -661,8 +656,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
gst_uri_decode_bin_signals[SIGNAL_DRAINED] =
|
||||
g_signal_new ("drained", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstURIDecodeBinClass, drained), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstURIDecodeBinClass, drained), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin::source-setup:
|
||||
|
@ -677,8 +672,7 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
*/
|
||||
gst_uri_decode_bin_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
|
|
|
@ -461,8 +461,8 @@ gst_uri_decode_bin3_class_init (GstURIDecodeBin3Class * klass)
|
|||
gst_uri_decode_bin3_signals[SIGNAL_SELECT_STREAM] =
|
||||
g_signal_new ("select-stream", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstURIDecodeBin3Class, select_stream),
|
||||
_gst_int_accumulator, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_INT, 2, GST_TYPE_STREAM_COLLECTION, GST_TYPE_STREAM);
|
||||
_gst_int_accumulator, NULL, NULL, G_TYPE_INT, 2,
|
||||
GST_TYPE_STREAM_COLLECTION, GST_TYPE_STREAM);
|
||||
|
||||
/**
|
||||
* GstURIDecodeBin3::source-setup:
|
||||
|
@ -476,8 +476,7 @@ gst_uri_decode_bin3_class_init (GstURIDecodeBin3Class * klass)
|
|||
*/
|
||||
gst_uri_decode_bin3_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
/**
|
||||
* GstURIDecodeBin3::about-to-finish:
|
||||
*
|
||||
|
@ -486,8 +485,7 @@ gst_uri_decode_bin3_class_init (GstURIDecodeBin3Class * klass)
|
|||
*/
|
||||
gst_uri_decode_bin3_signals[SIGNAL_ABOUT_TO_FINISH] =
|
||||
g_signal_new ("about-to-finish", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE,
|
||||
0, G_TYPE_NONE);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
|
|
|
@ -413,8 +413,8 @@ gst_uri_source_bin_class_init (GstURISourceBinClass * klass)
|
|||
gst_uri_source_bin_signals[SIGNAL_DRAINED] =
|
||||
g_signal_new ("drained", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstURISourceBinClass, drained), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstURISourceBinClass, drained), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstURISourceBin::about-to-finish:
|
||||
|
@ -424,8 +424,8 @@ gst_uri_source_bin_class_init (GstURISourceBinClass * klass)
|
|||
gst_uri_source_bin_signals[SIGNAL_ABOUT_TO_FINISH] =
|
||||
g_signal_new ("about-to-finish", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstURISourceBinClass, about_to_finish), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
G_STRUCT_OFFSET (GstURISourceBinClass, about_to_finish), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0, G_TYPE_NONE);
|
||||
|
||||
/**
|
||||
* GstURISourceBin::source-setup:
|
||||
|
@ -442,8 +442,7 @@ gst_uri_source_bin_class_init (GstURISourceBinClass * klass)
|
|||
*/
|
||||
gst_uri_source_bin_signals[SIGNAL_SOURCE_SETUP] =
|
||||
g_signal_new ("source-setup", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&srctemplate));
|
||||
|
|
|
@ -236,7 +236,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
g_signal_new ("add", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiFdSinkClass, add), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiFdSink::add-full:
|
||||
* @gstmultifdsink: the multifdsink element to emit this signal on
|
||||
|
@ -256,9 +256,8 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
g_signal_new ("add-full", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiFdSinkClass, add_full), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 6,
|
||||
G_TYPE_INT, GST_TYPE_SYNC_METHOD, GST_TYPE_FORMAT, G_TYPE_UINT64,
|
||||
GST_TYPE_FORMAT, G_TYPE_UINT64);
|
||||
NULL, G_TYPE_NONE, 6, G_TYPE_INT, GST_TYPE_SYNC_METHOD, GST_TYPE_FORMAT,
|
||||
G_TYPE_UINT64, GST_TYPE_FORMAT, G_TYPE_UINT64);
|
||||
/**
|
||||
* GstMultiFdSink::remove:
|
||||
* @gstmultifdsink: the multifdsink element to emit this signal on
|
||||
|
@ -270,7 +269,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
g_signal_new ("remove", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiFdSinkClass, remove), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiFdSink::remove-flush:
|
||||
* @gstmultifdsink: the multifdsink element to emit this signal on
|
||||
|
@ -283,7 +282,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
g_signal_new ("remove-flush", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiFdSinkClass, remove_flush), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
/**
|
||||
* GstMultiFdSink::get-stats:
|
||||
|
@ -309,7 +308,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiFdSinkClass, get_stats), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 1, G_TYPE_INT);
|
||||
NULL, GST_TYPE_STRUCTURE, 1, G_TYPE_INT);
|
||||
|
||||
/**
|
||||
* GstMultiFdSink::client-added:
|
||||
|
@ -322,8 +321,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
*/
|
||||
gst_multi_fd_sink_signals[SIGNAL_CLIENT_ADDED] =
|
||||
g_signal_new ("client-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE,
|
||||
1, G_TYPE_INT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
/**
|
||||
* GstMultiFdSink::client-removed:
|
||||
* @gstmultifdsink: the multifdsink element that emitted this signal
|
||||
|
@ -340,8 +338,8 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
*/
|
||||
gst_multi_fd_sink_signals[SIGNAL_CLIENT_REMOVED] =
|
||||
g_signal_new ("client-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 2, G_TYPE_INT, GST_TYPE_CLIENT_STATUS);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_INT,
|
||||
GST_TYPE_CLIENT_STATUS);
|
||||
/**
|
||||
* GstMultiFdSink::client-fd-removed:
|
||||
* @gstmultifdsink: the multifdsink element that emitted this signal
|
||||
|
@ -357,8 +355,7 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
|
|||
*/
|
||||
gst_multi_fd_sink_signals[SIGNAL_CLIENT_FD_REMOVED] =
|
||||
g_signal_new ("client-fd-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Multi filedescriptor sink", "Sink/Network",
|
||||
|
|
|
@ -455,7 +455,7 @@ gst_multi_handle_sink_class_init (GstMultiHandleSinkClass * klass)
|
|||
g_signal_new ("clear", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiHandleSinkClass, clear), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 0);
|
||||
NULL, G_TYPE_NONE, 0);
|
||||
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
|
||||
|
||||
|
|
|
@ -272,7 +272,7 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
g_signal_new ("add", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, add), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
NULL, G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
/**
|
||||
* GstMultiSocketSink::add-full:
|
||||
* @gstmultisocketsink: the multisocketsink element to emit this signal on
|
||||
|
@ -292,9 +292,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
g_signal_new ("add-full", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, add_full), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 6,
|
||||
G_TYPE_SOCKET, GST_TYPE_SYNC_METHOD, GST_TYPE_FORMAT, G_TYPE_UINT64,
|
||||
GST_TYPE_FORMAT, G_TYPE_UINT64);
|
||||
NULL, G_TYPE_NONE, 6, G_TYPE_SOCKET, GST_TYPE_SYNC_METHOD,
|
||||
GST_TYPE_FORMAT, G_TYPE_UINT64, GST_TYPE_FORMAT, G_TYPE_UINT64);
|
||||
/**
|
||||
* GstMultiSocketSink::remove:
|
||||
* @gstmultisocketsink: the multisocketsink element to emit this signal on
|
||||
|
@ -305,8 +304,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
gst_multi_socket_sink_signals[SIGNAL_REMOVE] =
|
||||
g_signal_new ("remove", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, remove), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, remove), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
/**
|
||||
* GstMultiSocketSink::remove-flush:
|
||||
* @gstmultisocketsink: the multisocketsink element to emit this signal on
|
||||
|
@ -318,8 +317,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
gst_multi_socket_sink_signals[SIGNAL_REMOVE_FLUSH] =
|
||||
g_signal_new ("remove-flush", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, remove_flush), NULL, NULL,
|
||||
g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, remove_flush), NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
|
||||
/**
|
||||
* GstMultiSocketSink::get-stats:
|
||||
|
@ -338,8 +337,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
gst_multi_socket_sink_signals[SIGNAL_GET_STATS] =
|
||||
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, get_stats), NULL, NULL,
|
||||
g_cclosure_marshal_generic, GST_TYPE_STRUCTURE, 1, G_TYPE_SOCKET);
|
||||
G_STRUCT_OFFSET (GstMultiSocketSinkClass, get_stats), NULL, NULL, NULL,
|
||||
GST_TYPE_STRUCTURE, 1, G_TYPE_SOCKET);
|
||||
|
||||
/**
|
||||
* GstMultiSocketSink::client-added:
|
||||
|
@ -352,8 +351,7 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
*/
|
||||
gst_multi_socket_sink_signals[SIGNAL_CLIENT_ADDED] =
|
||||
g_signal_new ("client-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 1, G_TYPE_OBJECT);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_OBJECT);
|
||||
/**
|
||||
* GstMultiSocketSink::client-removed:
|
||||
* @gstmultisocketsink: the multisocketsink element that emitted this signal
|
||||
|
@ -370,8 +368,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
*/
|
||||
gst_multi_socket_sink_signals[SIGNAL_CLIENT_REMOVED] =
|
||||
g_signal_new ("client-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 2, G_TYPE_SOCKET, GST_TYPE_CLIENT_STATUS);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_SOCKET,
|
||||
GST_TYPE_CLIENT_STATUS);
|
||||
/**
|
||||
* GstMultiSocketSink::client-socket-removed:
|
||||
* @gstmultisocketsink: the multisocketsink element that emitted this signal
|
||||
|
@ -387,8 +385,7 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass)
|
|||
*/
|
||||
gst_multi_socket_sink_signals[SIGNAL_CLIENT_SOCKET_REMOVED] =
|
||||
g_signal_new ("client-socket-removed", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_SOCKET);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Multi socket sink", "Sink/Network",
|
||||
|
|
Loading…
Reference in a new issue