diff --git a/ChangeLog b/ChangeLog index f429ea83c2..d076b1df08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-05-02 Thomas Vander Stichele + + * gst/gstregistry.h: + win32/mingw obviously did not work + * gst/gsttag.h: + remove some whitespace + * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_dump_byte_array): + put back a fix that accidentally got reverted in a backport + 2005-05-02 Thomas Vander Stichele * gst/gsttrace.c: (read_tsc), (gst_trace_read_tsc): @@ -1475,7 +1484,7 @@ * gst/gstplugin.c: * gst/gstplugin.h: - add accessor for version field + API: add accessor for version field 2004-12-06 Thomas Vander Stichele @@ -8267,7 +8276,7 @@ 2004-01-26 Thomas Vander Stichele * gst/gsterror.h: reinstate GST_LIBRARY_ERROR_ENCODE until - policy is set + policy is set 2004-01-26 Benjamin Otte diff --git a/docs/gst/tmpl/gstchildproxy.sgml b/docs/gst/tmpl/gstchildproxy.sgml index a8185b119e..22c62afa78 100644 --- a/docs/gst/tmpl/gstchildproxy.sgml +++ b/docs/gst/tmpl/gstchildproxy.sgml @@ -2,22 +2,19 @@ GstChildProxy -interface for multi child element property access + -This interface provides a uniform way to access child objects of elements. -There are methods to get the children and methods to (recursivly) set and get -their properties. + + - - diff --git a/docs/gst/tmpl/gstelement.sgml b/docs/gst/tmpl/gstelement.sgml index c3416f1f3e..e82ca5ac15 100644 --- a/docs/gst/tmpl/gstelement.sgml +++ b/docs/gst/tmpl/gstelement.sgml @@ -2,68 +2,19 @@ GstElement -Abstract base class for all pipeline elements + -GstElement is the base class needed to construct an element that can be -used in a GStreamer pipeline. As such, it is not a functional entity, and -cannot do anything when placed in a pipeline. + - -The name of a GstElement can be get with gst_element_get_name() and set with -gst_element_set_name(). For speed, GST_ELEMENT_NAME() can be used in the -core. -Do not use this in plug-ins or applications in order to retain ABI -compatibility. - - - -All elements have pads (of the type #GstPad). These pads link to pads on -other elements. Buffers flow between these linked pads. -A GstElement has a GList of #GstPad structures for all their input (or sink) -and output (or source) pads. -Core and plug-in writers can add and remove pads with gst_element_add_pad() -and gst_element_remove_pad(). -Application writers can manipulate ghost pads (copies of real pads inside a bin) -with gst_element_add_ghost_pad() and gst_element_remove_ghost_pad(). -A pad of an element can be retrieved by name with gst_element_get_pad(). -A GList of all pads can be retrieved with gst_element_get_pad_list(). - - - -Elements can be linked through their pads. -If the link is straightforward, use the gst_element_link() -convenience function to link two elements, or gst_element_link_many() -for more elements in a row. -Use gst_element_link_filtered() to link two elements constrained by -a specified set of #GstCaps. -For finer control, use gst_element_link_pads() and -gst_element_link_pads_filtered() to specify the pads to link on -each element by name. - - - -Each element has a state (see #GstElementState). You can get and set the state -of an element with gst_element_get_state() and gst_element_set_state(). -You can wait for an element to change it's state with gst_element_wait_state_change(). -To get a string representation of a #GstElementState, use -gst_element_state_get_name(). - - - -You can get and set a #GstClock on an element using gst_element_get_clock() -and gst_element_set_clock(). You can wait for the clock to reach a given -#GstClockTime using gst_element_clock_wait(). - -#GstElementFactory, #GstPad + - @@ -131,107 +82,107 @@ and gst_element_set_clock(). You can wait for the clock to reach a given -The maximun number of states. + -This macro returns the current state of the element. + -@obj: Element to return state for. +@obj: -This macro returns the currently pending state of the element. + -@obj: Element to return the pending state for. +@obj: -Returns the state transition this object is going through. + -@obj: the Element to return the state transition for +@obj: -The Element is going from the NULL state to the READY state. + -The Element is going from the READY state to the PAUSED state. + -The Element is going from the PAUSED state to the PLAYING state. + -The Element is going from the PLAYING state to the PAUSED state. + -The Element is going from the PAUSED state to the READY state. + -The Element is going from the READY state to the NULL state. + -Helper macro to create query type functions + -@functionname: The function name -@...: list of query types. +@functionname: +@...: -Halper macro to create element format functions + -@functionname: The function name -@...: formats +@functionname: +@...: -A helper macro to create a mask function + -@functionname: the name of the mask function -@...: Masks +@functionname: +@...: -This enum defines the standard flags that an element may have. + @GST_ELEMENT_COMPLEX: @@ -245,70 +196,71 @@ This enum defines the standard flags that an element may have. @GST_ELEMENT_SCHEDULER_PRIVATE2: @GST_ELEMENT_LOCKED_STATE: @GST_ELEMENT_IN_ERROR: +@GST_ELEMENT_WORK_IN_PLACE: @GST_ELEMENT_FLAG_LAST: -Queries whether the Element should be placed in a thread. + -@obj: a #GstElement to query +@obj: -Query wether this element can handle events. + -@obj: a #GstElement to query +@obj: -Queries if the Element is decoupled. + -@obj: a #GstElement to query +@obj: -Gets the name of this element. Used in the core. Not ABI-compatible. + -@obj: A #GstElement to query +@obj: -Get the parent object of this element. + -@obj: a #GstElement to query +@obj: -Get the scheduler of this element. + -@obj: a #GstElement to query +@obj: -Get the clock of this element + -@obj: a #GstElement to query +@obj: -Get the pads of this elements. + -@obj: a #GstElement to query +@obj: @@ -325,30 +277,26 @@ Get the pads of this elements. -This function type is used to specify a loop function for the element. It -is passed the element in question, and is expect to return only in error -circumstances. + -@element: The element in question. +@element: -The signature of the function to execute after this element -is scheduled. + -@element: The element +@element: -The signature of the function to execute before this element -is scheduled. + -@element: The element +@element: @@ -381,8 +329,7 @@ is scheduled. -The default deep notify handler that prints out the property change -notifications to stdout. + @@ -409,41 +356,36 @@ notifications to stdout. -Gets the name of the element. + @elem: -@Returns: the name of the element. - - - -Sets the name of the element, getting rid of the old name if there was one. + -@elem: a #GstElement to set the name of. -@name: the new name of the element. +@elem: +@name: -Gets the parent of an element. + -@elem: a #GstElement to get the parent of. -@Returns: the #GstObject parent of the element. +@elem: -Sets the parent of an element. + -@elem: a #GstElement to set the parent of. -@parent: the new #GstObject parent of the object. +@elem: +@parent: @@ -575,9 +517,6 @@ Sets the parent of an element. @id: @jitter: @Returns: - -@clock: -@time: @@ -736,9 +675,6 @@ Sets the parent of an element. @pad: - - - @@ -746,7 +682,7 @@ Sets the parent of an element. @element: @name: -@Returns: GList of #GstPads +@Returns: @@ -846,10 +782,6 @@ Sets the parent of an element. @Returns: - - - - @@ -947,9 +879,6 @@ Sets the parent of an element. @destpadname: - - - @@ -1146,8 +1075,6 @@ Sets the parent of an element. @element: @Returns: - - diff --git a/docs/gst/tmpl/gsttaglist.sgml b/docs/gst/tmpl/gsttaglist.sgml index 64559f8c9a..b9f9441afe 100644 --- a/docs/gst/tmpl/gsttaglist.sgml +++ b/docs/gst/tmpl/gsttaglist.sgml @@ -2,18 +2,20 @@ GstTagList -List of tags and values used to describe media metadata + + + @@ -854,3 +856,10 @@ List of tags and values used to describe media metadata + + + + + + + diff --git a/gst/gstregistry.h b/gst/gstregistry.h index f4676df63a..5ae759c74e 100644 --- a/gst/gstregistry.h +++ b/gst/gstregistry.h @@ -36,28 +36,28 @@ /* compatibility for pre-POSIX defines */ #ifdef S_IRUSR -#if defined(_WIN32) && defined(__MINGW32__) -#define REGISTRY_DIR_PERMS (S_ISGID | \ - S_IRUSR | S_IWUSR | S_IXUSR) +# if defined(_WIN32) && defined(__MINGW32__) +# define REGISTRY_DIR_PERMS (S_ISGID | \ + S_IRUSR | S_IWUSR | S_IXUSR) +# else +# define REGISTRY_DIR_PERMS (S_ISGID | \ + S_IRUSR | S_IWUSR | S_IXUSR | \ + S_IRGRP | S_IXGRP | \ + S_IROTH | S_IXOTH) +# endif +# define REGISTRY_TMPFILE_PERMS (S_IRUSR | S_IWUSR) +# if defined(_WIN32) && defined(__MINGW32__) +# define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR) +# else +# define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR | \ + S_IRGRP | S_IWGRP | \ + S_IROTH | S_IWOTH) +# endif #else -#define REGISTRY_DIR_PERMS (S_ISGID | \ - S_IRUSR | S_IWUSR | S_IXUSR | \ - S_IRGRP | S_IXGRP | \ - S_IROTH | S_IXOTH) -#endif -#define REGISTRY_TMPFILE_PERMS (S_IRUSR | S_IWUSR) -#if defined(_WIN32) && defined(__MINGW32__) -#define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR -#else -#define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR | \ - S_IRGRP | S_IWGRP | \ - S_IROTH | S_IWOTH) -#endif -#else -#define REGISTRY_DIR_PERMS (S_ISGID | \ - S_IREAD | S_IWRITE | S_IEXEC) -#define REGISTRY_TMPFILE_PERMS (S_IREAD | S_IWRITE) -#define REGISTRY_FILE_PERMS (S_IREAD | S_IWRITE) +# define REGISTRY_DIR_PERMS (S_ISGID | \ + S_IREAD | S_IWRITE | S_IEXEC) +# define REGISTRY_TMPFILE_PERMS (S_IREAD | S_IWRITE) +# define REGISTRY_FILE_PERMS (S_IREAD | S_IWRITE) #endif G_BEGIN_DECLS diff --git a/gst/gsttag.h b/gst/gsttag.h index b24244c861..f7bca61aba 100644 --- a/gst/gsttag.h +++ b/gst/gsttag.h @@ -123,7 +123,7 @@ G_CONST_RETURN GValue * gst_tag_list_get_value_index (const GstTagList * list, const gchar * tag, guint index); -gboolean gst_tag_list_copy_value (GValue * dest, +gboolean gst_tag_list_copy_value (GValue * dest, const GstTagList * list, const gchar * tag); @@ -212,7 +212,7 @@ gboolean gst_tag_list_get_string_index (const GstTagList * list, const gchar * tag, guint index, gchar ** value); -gboolean gst_tag_list_get_pointer (const GstTagList * list, +gboolean gst_tag_list_get_pointer (const GstTagList * list, const gchar * tag, gpointer * value); gboolean gst_tag_list_get_pointer_index (const GstTagList * list, @@ -423,7 +423,7 @@ GstTagList * gst_event_tag_get_list (GstEvent * tag_event); * * album gain in db */ -#define GST_TAG_ALBUM_GAIN "replaygain-album-gain" +#define GST_TAG_ALBUM_GAIN "replaygain-album-gain" /** * GST_TAG_ALBUM_PEAK: * diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index b24244c861..f7bca61aba 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -123,7 +123,7 @@ G_CONST_RETURN GValue * gst_tag_list_get_value_index (const GstTagList * list, const gchar * tag, guint index); -gboolean gst_tag_list_copy_value (GValue * dest, +gboolean gst_tag_list_copy_value (GValue * dest, const GstTagList * list, const gchar * tag); @@ -212,7 +212,7 @@ gboolean gst_tag_list_get_string_index (const GstTagList * list, const gchar * tag, guint index, gchar ** value); -gboolean gst_tag_list_get_pointer (const GstTagList * list, +gboolean gst_tag_list_get_pointer (const GstTagList * list, const gchar * tag, gpointer * value); gboolean gst_tag_list_get_pointer_index (const GstTagList * list, @@ -423,7 +423,7 @@ GstTagList * gst_event_tag_get_list (GstEvent * tag_event); * * album gain in db */ -#define GST_TAG_ALBUM_GAIN "replaygain-album-gain" +#define GST_TAG_ALBUM_GAIN "replaygain-album-gain" /** * GST_TAG_ALBUM_PEAK: * diff --git a/libs/gst/dataprotocol/dataprotocol.c b/libs/gst/dataprotocol/dataprotocol.c index ef832bbb29..019ea59a73 100644 --- a/libs/gst/dataprotocol/dataprotocol.c +++ b/libs/gst/dataprotocol/dataprotocol.c @@ -83,7 +83,7 @@ gst_dp_dump_byte_array (guint8 * array, guint length) { int i; int n = 8; /* number of bytes per line */ - gchar *line = g_malloc (3 * n); + gchar *line = g_malloc (3 * n + 1); GST_LOG ("dumping byte array of length %d", length); for (i = 0; i < length; ++i) {