G_DEFINE_TYPE (GstBus, gst_bus, GST_TYPE_OBJECT);
-/* fixme: do something about this */
-static void
-marshal_VOID__MINIOBJECT (GClosure * closure, GValue * return_value,
- guint n_param_values, const GValue * param_values, gpointer invocation_hint,
- gpointer marshal_data)
-{
- typedef void (*marshalfunc_VOID__MINIOBJECT) (gpointer obj, gpointer arg1,
- gpointer data2);
- register marshalfunc_VOID__MINIOBJECT callback;
- register GCClosure *cc = (GCClosure *) closure;
- register gpointer data1, data2;
-
- g_return_if_fail (n_param_values == 2);
-
- if (G_CCLOSURE_SWAP_DATA (closure)) {
- data1 = closure->data;
- data2 = g_value_peek_pointer (param_values + 0);
- } else {
- data1 = g_value_peek_pointer (param_values + 0);
- data2 = closure->data;
- }
- callback =
- (marshalfunc_VOID__MINIOBJECT) (marshal_data ? marshal_data :
- cc->callback);
-
- callback (data1, gst_value_get_mini_object (param_values + 1), data2);
-}
-
static void
+ gst_bus_set_property (GObject * object,
+ guint prop_id, const GValue * value, GParamSpec * pspec)
+ {
+ GstBus *bus = GST_BUS_CAST (object);
+
+ switch (prop_id) {
+ case PROP_ENABLE_ASYNC:
+ bus->priv->enable_async = g_value_get_boolean (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+ }
+
+ static void
+ gst_bus_constructed (GObject * object)
+ {
+ GstBus *bus = GST_BUS_CAST (object);
+
+ if (bus->priv->enable_async) {
+ bus->priv->poll = gst_poll_new_timer ();
+ gst_poll_get_read_gpollfd (bus->priv->poll, &bus->priv->pollfd);
+ }
+ }
+
+ static void
gst_bus_class_init (GstBusClass * klass)
{
GObjectClass *gobject_class = (GObjectClass *) klass;
gst_adapter_take
gst_adapter_take_buffer
gst_adapter_take_list
+ gst_adapter_unmap
+ gst_base_parse_add_index_entry
+ gst_base_parse_convert_default
+ gst_base_parse_frame_init
+ gst_base_parse_get_type
+ gst_base_parse_push_frame
+ gst_base_parse_set_average_bitrate
+ gst_base_parse_set_duration
+ gst_base_parse_set_frame_rate
+ gst_base_parse_set_has_timing_info
+ gst_base_parse_set_min_frame_size
+ gst_base_parse_set_passthrough
+ gst_base_parse_set_syncable
gst_base_sink_do_preroll
gst_base_sink_get_blocksize
gst_base_sink_get_last_buffer