mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
gst/gstpad.c: Small doc updates.
Original commit message from CVS: * 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
This commit is contained in:
parent
dfe3f7f6f5
commit
5d66b9af57
3 changed files with 49 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
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):
|
||||
|
|
34
gst/gstpad.c
34
gst/gstpad.c
|
@ -3214,6 +3214,20 @@ gst_pad_get_element_private (GstPad * pad)
|
|||
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)
|
||||
{
|
||||
|
@ -3262,6 +3276,16 @@ no_sched:
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
|
@ -3288,6 +3312,16 @@ no_task:
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
|
|
|
@ -865,8 +865,8 @@ gst_value_deserialize_caps (GValue * dest, const char *s)
|
|||
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;
|
||||
|
@ -888,7 +888,7 @@ gst_value_serialize_buffer (const GValue * value)
|
|||
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);
|
||||
|
@ -930,7 +930,7 @@ gst_value_deserialize_buffer (GValue * dest, const char *s)
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue