+2005-06-20 Wim Taymans <wim@fluendo.com>
+
+ * gst/gstpad.c:
+ Small doc updates.
+
+ * gst/gstvalue.c: (gst_value_compare_buffer),
+ (gst_value_serialize_buffer), (gst_value_deserialize_buffer),
+ (gst_value_compare_flags), (gst_value_serialize_flags),
+ (gst_value_deserialize_flags), (_gst_value_initialize):
+ Fix serialisation of buffers, they are not boxed types anymore
+
2005-06-20 Wim Taymans <wim@fluendo.com>
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
return pad->element_private;
}
+/**
+ * gst_pad_start_task:
+ * @pad: the #GstPad to start the task of
+ * @func: the task function to call
+ * @data: data passed to the task function
+ *
+ * Starts a task that repeadedly calls @func with @data. This function
+ * is nostly used in the pad activation function to start the
+ * dataflow. This function will automatically acauire the STREAM_LOCK of
+ * the pad before calling @func.
+ *
+ * Returns: a TRUE if the task could be started. FALSE when the pad has
+ * no parent or the parent has no scheduler.
+ */
gboolean
gst_pad_start_task (GstPad * pad, GstTaskFunction func, gpointer data)
{
}
}
+/**
+ * gst_pad_pause_task:
+ * @pad: the #GstPad to pause the task of
+ *
+ * Pause the task of @pad. This function will also make sure that the
+ * function executed by the task will effectively stop.
+ *
+ * Returns: a TRUE if the task could be paused or FALSE when the pad
+ * has no task.
+ */
gboolean
gst_pad_pause_task (GstPad * pad)
{
}
}
+/**
+ * gst_pad_stop_task:
+ * @pad: the #GstPad to stop the task of
+ *
+ * Stop the task of @pad. This function will also make sure that the
+ * function executed by the task will effectively stop.
+ *
+ * Returns: a TRUE if the task could be stopped or FALSE when the pad
+ * has no task.
+ */
gboolean
gst_pad_stop_task (GstPad * pad)
{
static int
gst_value_compare_buffer (const GValue * value1, const GValue * value2)
{
- GstBuffer *buf1 = g_value_get_boxed (value1);
- GstBuffer *buf2 = g_value_get_boxed (value2);
+ GstBuffer *buf1 = GST_BUFFER (gst_value_get_mini_object (value1));
+ GstBuffer *buf2 = GST_BUFFER (gst_value_get_mini_object (value2));
if (GST_BUFFER_SIZE (buf1) != GST_BUFFER_SIZE (buf2))
return GST_VALUE_UNORDERED;
int i;
int size;
char *string;
- GstBuffer *buffer = g_value_get_boxed (value);
+ GstBuffer *buffer = GST_BUFFER (gst_value_get_mini_object (value));
data = GST_BUFFER_DATA (buffer);
size = GST_BUFFER_SIZE (buffer);
}
if (ret) {
- g_value_set_boxed (dest, buffer);
+ gst_value_set_mini_object (dest, GST_MINI_OBJECT (buffer));
return TRUE;
} else {
gst_buffer_unref (buffer);