+2006-05-23 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Julien Moutte <julien at moutte net>
+
+ * docs/gst/gstreamer-sections.txt:
+ Make new GST_FLOW_IS_SUCCESS macro visible in docs.
+
+ * plugins/elements/gstfakesink.c: (gst_fake_sink_class_init),
+ (gst_fake_sink_preroll):
+ * plugins/elements/gstfakesink.h:
+ Add new ::preroll-handoff signal (#337100).
+
2006-05-23 Wim Taymans <wim@fluendo.com>
* gst/gstpad.c: (gst_flow_get_name), (gst_flow_to_quark):
{
/* FILL ME */
SIGNAL_HANDOFF,
+ SIGNAL_PREROLL_HANDOFF,
LAST_SIGNAL
};
gst_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2,
GST_TYPE_BUFFER, GST_TYPE_PAD);
+ /**
+ * GstFakeSink::preroll-handoff:
+ * @fakesink: the fakesink instance
+ * @buffer: the buffer that just has been received
+ * @pad: the pad that received it
+ *
+ * This signal gets emitted before unreffing the buffer.
+ *
+ * Since: 0.10.7
+ */
+ gst_fake_sink_signals[SIGNAL_PREROLL_HANDOFF] =
+ g_signal_new ("preroll-handoff", G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstFakeSinkClass, preroll_handoff),
+ NULL, NULL, gst_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2,
+ GST_TYPE_BUFFER, GST_TYPE_PAD);
+
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_fake_sink_change_state);
g_object_notify (G_OBJECT (sink), "last_message");
}
+ if (sink->signal_handoffs) {
+ g_signal_emit (sink,
+ gst_fake_sink_signals[SIGNAL_PREROLL_HANDOFF], 0, buffer,
+ bsink->sinkpad);
+ }
return GST_FLOW_OK;
}
/* signals */
void (*handoff) (GstElement *element, GstBuffer *buf, GstPad *pad);
+ void (*preroll_handoff) (GstElement *element, GstBuffer *buf, GstPad *pad);
};
GType gst_fake_sink_get_type (void);