expand tabs
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 6 Dec 2005 19:29:15 +0000 (19:29 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 6 Dec 2005 19:29:15 +0000 (19:29 +0000)
Original commit message from CVS:
expand tabs

37 files changed:
ChangeLog
docs/libs/tmpl/gstdataprotocol.sgml
docs/random/omega/testing/gstobject.c
gst/gst.c
gst/gstclock.c
gst/gstelement.c
gst/gstelementfactory.c
gst/gsterror.c
gst/gstevent.c
gst/gstghostpad.c
gst/gstinfo.c
gst/gstpadtemplate.c
gst/gstregistryxml.c
gst/gsttaglist.c
gst/gsttagsetter.c
gst/gsttypefind.c
gst/gstvalue.c
libs/gst/base/gstbasesrc.c
libs/gst/net/gstnetclientclock.c
libs/gst/net/gstnettimeprovider.c
plugins/elements/gstfakesrc.c
plugins/elements/gstfdsrc.c
plugins/elements/gstfilesrc.c
plugins/elements/gstidentity.c
plugins/elements/gstqueue.c
plugins/elements/gsttypefindelement.c
plugins/indexers/gstfileindex.c
plugins/indexers/gstmemindex.c
tests/check/gst/gsttag.c
tests/old/examples/cutter/cutter.c
tests/old/examples/mixer/mixer.c
tests/old/examples/xml/runxml.c
tests/old/testsuite/caps/normalisation.c
tests/old/testsuite/debug/global.c
tests/old/testsuite/parse/parse1.c
tools/gst-xmlinspect.c
win32/common/dirent.c

index 5349a7f..dafd45d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,43 @@
+2005-12-06  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * docs/libs/tmpl/gstdataprotocol.sgml:
+       * docs/random/omega/testing/gstobject.c:
+       * gst/gst.c:
+       * gst/gstclock.c:
+       * gst/gstelement.c:
+       * gst/gstelementfactory.c:
+       * gst/gsterror.c:
+       * gst/gstevent.c:
+       * gst/gstghostpad.c:
+       * gst/gstinfo.c:
+       * gst/gstpadtemplate.c:
+       * gst/gstregistryxml.c:
+       * gst/gsttaglist.c:
+       * gst/gsttagsetter.c:
+       * gst/gsttypefind.c:
+       * gst/gstvalue.c:
+       * libs/gst/base/gstbasesrc.c:
+       * libs/gst/net/gstnetclientclock.c:
+       * libs/gst/net/gstnettimeprovider.c:
+       * plugins/elements/gstfakesrc.c:
+       * plugins/elements/gstfdsrc.c:
+       * plugins/elements/gstfilesrc.c:
+       * plugins/elements/gstidentity.c:
+       * plugins/elements/gstqueue.c:
+       * plugins/elements/gsttypefindelement.c:
+       * plugins/indexers/gstfileindex.c:
+       * plugins/indexers/gstmemindex.c:
+       * tests/check/gst/gsttag.c:
+       * tests/old/examples/cutter/cutter.c:
+       * tests/old/examples/mixer/mixer.c:
+       * tests/old/examples/xml/runxml.c: (main):
+       * tests/old/testsuite/caps/normalisation.c:
+       * tests/old/testsuite/debug/global.c:
+       * tests/old/testsuite/parse/parse1.c:
+       * tools/gst-xmlinspect.c:
+       * win32/common/dirent.c:
+         expand tabs
+
 === release 0.10.0 ===
 
 2005-12-05   <thomas (at) apestaart (dot) org>
index 0277c7c..c5446c9 100644 (file)
@@ -27,6 +27,9 @@ network connections also need a protocol to do this.
 #GstBuffer, #GstCaps, #GstEvent
 </para>
 
+<!-- ##### SECTION Stability_Level ##### -->
+
+
 <!-- ##### ENUM GstDPHeaderFlag ##### -->
 <para>
 
index 41f11b8..d188f49 100644 (file)
@@ -19,24 +19,24 @@ tabpad (gchar * str, gint width)
 #define TEST_CATEGORY(category) fprintf(stderr,"\n\nCategory: %s\n",category)
 
 #define TEST(test) fprintf(stderr,"Test %d: %s...\n",_testnum,test),_passed = TRUE
-#define ASSERT(expr) G_STMT_START{                             \
-  fprintf(stderr,"\t%s:",#expr);tabpad(#expr,50);              \
-  if (!(expr)) {                                               \
-    fprintf(stderr,"FAILED\n");                                        \
-    _passed = FALSE;                                           \
-  } else {                                                     \
-    fprintf(stderr,"passed\n");                                        \
-  }                                                            \
+#define ASSERT(expr) G_STMT_START{                              \
+  fprintf(stderr,"\t%s:",#expr);tabpad(#expr,50);               \
+  if (!(expr)) {                                                \
+    fprintf(stderr,"FAILED\n");                                 \
+    _passed = FALSE;                                            \
+  } else {                                                      \
+    fprintf(stderr,"passed\n");                                 \
+  }                                                             \
 }G_STMT_END;
-#define ENDTEST() G_STMT_START{                        \
-  _testnum++;                                  \
-  if (_passed) {                               \
-    fprintf(stderr,"\tpassed.\n");             \
-    _passed_tests++;                           \
-  } else {                                     \
-    fprintf(stderr,"\tFAILED.\n");             \
-  }                                            \
-  _total_tests++;                              \
+#define ENDTEST() G_STMT_START{                 \
+  _testnum++;                                   \
+  if (_passed) {                                \
+    fprintf(stderr,"\tpassed.\n");              \
+    _passed_tests++;                            \
+  } else {                                      \
+    fprintf(stderr,"\tFAILED.\n");              \
+  }                                             \
+  _total_tests++;                               \
 }G_STMT_END;
 
 void
index b2fca64..9584519 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
 
 #define GST_CAT_DEFAULT GST_CAT_GST_INIT
 
-#define MAX_PATH_SPLIT 16
+#define MAX_PATH_SPLIT  16
 #define GST_PLUGIN_SEPARATOR ","
 
 static gboolean gst_initialized = FALSE;
index e530542..8e5cc58 100644 (file)
@@ -109,10 +109,10 @@ static GstAllocTrace *_gst_clock_entry_trace;
 
 /* #define DEBUGGING_ENABLED */
 
-#define DEFAULT_STATS                  FALSE
-#define DEFAULT_WINDOW_SIZE            32
-#define DEFAULT_WINDOW_THRESHOLD       4
-#define DEFAULT_TIMEOUT                        GST_SECOND / 10
+#define DEFAULT_STATS                   FALSE
+#define DEFAULT_WINDOW_SIZE             32
+#define DEFAULT_WINDOW_THRESHOLD        4
+#define DEFAULT_TIMEOUT                 GST_SECOND / 10
 
 enum
 {
index 0e57c77..c2ca06e 100644 (file)
@@ -1834,25 +1834,25 @@ nothing_aborted:
 }
 
 /**
- * gst_element_continue_state:          
- * @element: a #GstElement to continue the state change of.     
+ * gst_element_continue_state:   
+ * @element: a #GstElement to continue the state change of.      
  * @ret: The previous state return value
- *      
+ *       
  * Commit the state change of the element and proceed to the next 
- * pending state if any. This function is used          
- * by elements that do asynchronous state changes.      
- * The core will normally call this method automatically when an        
- * element returned SUCCESS from the state change function.     
- * Elements that return ASYNC from the change_state function should     
- * eventually call this method from the streaming thread to signal      
- * successfull state change completion.         
- *      
- * If after calling this method the element still has not reached       
- * the pending state, the next state change is performed.       
- *      
- * Returns: The result of the commit state change.      
- *      
- * MT safe.     
+ * pending state if any. This function is used   
+ * by elements that do asynchronous state changes.       
+ * The core will normally call this method automatically when an         
+ * element returned SUCCESS from the state change function.      
+ * Elements that return ASYNC from the change_state function should      
+ * eventually call this method from the streaming thread to signal       
+ * successfull state change completion.          
+ *       
+ * If after calling this method the element still has not reached        
+ * the pending state, the next state change is performed.        
+ *       
+ * Returns: The result of the commit state change.       
+ *       
+ * MT safe.      
  */
 GstStateChangeReturn
 gst_element_continue_state (GstElement * element, GstStateChangeReturn ret)
index 56bb5c2..db5614c 100644 (file)
@@ -178,15 +178,15 @@ __gst_element_details_clear (GstElementDetails * dp)
   dp->author = NULL;
 }
 
-#define VALIDATE_SET(__dest, __src, __entry)                           \
-G_STMT_START {                                                         \
-  if (g_utf8_validate (__src->__entry, -1, NULL)) {                    \
-    __dest->__entry = g_strdup (__src->__entry);                       \
-  } else {                                                             \
-    g_warning ("Invalid UTF-8 in " G_STRINGIFY (__entry) ": %s",       \
-        __src->__entry);                                               \
-    __dest->__entry = g_strdup ("[ERROR: invalid UTF-8]");             \
-  }                                                                    \
+#define VALIDATE_SET(__dest, __src, __entry)                            \
+G_STMT_START {                                                          \
+  if (g_utf8_validate (__src->__entry, -1, NULL)) {                     \
+    __dest->__entry = g_strdup (__src->__entry);                        \
+  } else {                                                              \
+    g_warning ("Invalid UTF-8 in " G_STRINGIFY (__entry) ": %s",        \
+        __src->__entry);                                                \
+    __dest->__entry = g_strdup ("[ERROR: invalid UTF-8]");              \
+  }                                                                     \
 } G_STMT_END
 
 void
index 7c50ec3..bb3aa48 100644 (file)
 #include "gst-i18n-lib.h"
 
 #define TABLE(t, d, a, b) t[GST_ ## d ## _ERROR_ ## a] = g_strdup (b)
-#define QUARK_FUNC(string)                                             \
-GQuark gst_ ## string ## _error_quark (void) {                         \
-  static GQuark quark;                                                 \
-  if (!quark)                                                          \
+#define QUARK_FUNC(string)                                              \
+GQuark gst_ ## string ## _error_quark (void) {                          \
+  static GQuark quark;                                                  \
+  if (!quark)                                                           \
     quark = g_quark_from_static_string ("gst-" # string "-error-quark"); \
   return quark; }
 
index 2f4dad8..71af905 100644 (file)
@@ -57,9 +57,9 @@
  *   // the pipeline to decrease latency.
  *   event = gst_event_new_seek (1.0, 
  *      GST_FORMAT_TIME, 
- *     GST_SEEK_FLAG_FLUSH,
- *     GST_SEEK_TYPE_SET, 2 * GST_SECOND,
- *     GST_SEEK_TYPE_SET, 5 * GST_SECOND);
+ *      GST_SEEK_FLAG_FLUSH,
+ *      GST_SEEK_TYPE_SET, 2 * GST_SECOND,
+ *      GST_SEEK_TYPE_SET, 5 * GST_SECOND);
  *   ...
  *   result = gst_element_send_event (pipeline, event);
  *   if (!result)
index 1e791b5..056588e 100644 (file)
 
 #include "gstghostpad.h"
 
-#define GST_TYPE_PROXY_PAD             (gst_proxy_pad_get_type ())
-#define GST_IS_PROXY_PAD(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PROXY_PAD))
-#define GST_IS_PROXY_PAD_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PROXY_PAD))
-#define GST_PROXY_PAD(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PROXY_PAD, GstProxyPad))
-#define GST_PROXY_PAD_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PROXY_PAD, GstProxyPadClass))
-#define GST_PROXY_PAD_TARGET(pad)      (GST_PROXY_PAD (pad)->target)
+#define GST_TYPE_PROXY_PAD              (gst_proxy_pad_get_type ())
+#define GST_IS_PROXY_PAD(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PROXY_PAD))
+#define GST_IS_PROXY_PAD_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PROXY_PAD))
+#define GST_PROXY_PAD(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PROXY_PAD, GstProxyPad))
+#define GST_PROXY_PAD_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PROXY_PAD, GstProxyPadClass))
+#define GST_PROXY_PAD_TARGET(pad)       (GST_PROXY_PAD (pad)->target)
 
 
 typedef struct _GstProxyPad GstProxyPad;
 typedef struct _GstProxyPadClass GstProxyPadClass;
 
-#define GST_PROXY_GET_LOCK(pad)        (GST_PROXY_PAD (pad)->proxy_lock)
-#define GST_PROXY_LOCK(pad)    (g_mutex_lock (GST_PROXY_GET_LOCK (pad)))
-#define GST_PROXY_UNLOCK(pad)  (g_mutex_unlock (GST_PROXY_GET_LOCK (pad)))
+#define GST_PROXY_GET_LOCK(pad) (GST_PROXY_PAD (pad)->proxy_lock)
+#define GST_PROXY_LOCK(pad)     (g_mutex_lock (GST_PROXY_GET_LOCK (pad)))
+#define GST_PROXY_UNLOCK(pad)   (g_mutex_unlock (GST_PROXY_GET_LOCK (pad)))
 
 struct _GstProxyPad
 {
index 30f479e..f83831a 100644 (file)
@@ -51,7 +51,7 @@
  * the variables and set the default category.
  * <informalexample>
  * <programlisting>
- * GST_DEBUG_CATEGORY (my_category);           // define category
+ * GST_DEBUG_CATEGORY (my_category);            // define category
  * &hash;define GST_CAT_DEFAULT my_category     // set as default
  * </programlisting>
  * </informalexample>
index b96688a..9670a1c 100644 (file)
  *   <programlisting>
  *   GstStaticPadTemplate my_template =
  *   GST_STATIC_PAD_TEMPLATE (
- *     "sink",         // the name of the pad
- *     GST_PAD_SINK,   // the direction of the pad
- *     GST_PAD_ALWAYS, // when this pad will be present
- *     GST_STATIC_CAPS (       // the capabilities of the padtemplate
+ *     "sink",          // the name of the pad
+ *     GST_PAD_SINK,    // the direction of the pad
+ *     GST_PAD_ALWAYS,  // when this pad will be present
+ *     GST_STATIC_CAPS (        // the capabilities of the padtemplate
  *       "audio/x-raw-int, "
  *         "channels = (int) [ 1, 6 ]"
  *     )
index 915e4bd..3d82423 100644 (file)
@@ -519,13 +519,13 @@ gst_registry_xml_read_cache (GstRegistry * registry, const char *location)
 /*
  * Save
  */
-#define PUT_ESCAPED(prefix,tag,value)                          \
-G_STMT_START{                                                  \
-  const gchar *toconv = value;                                 \
-  if (toconv) {                                                        \
-    gchar *v = g_markup_escape_text (toconv, strlen (toconv)); \
-    gst_registry_xml_save (registry, prefix "<%s>%s</%s>\n", tag, v, tag);                     \
-    g_free (v);                                                        \
+#define PUT_ESCAPED(prefix,tag,value)                           \
+G_STMT_START{                                                   \
+  const gchar *toconv = value;                                  \
+  if (toconv) {                                                 \
+    gchar *v = g_markup_escape_text (toconv, strlen (toconv));  \
+    gst_registry_xml_save (registry, prefix "<%s>%s</%s>\n", tag, v, tag);                      \
+    g_free (v);                                                 \
   }                                                             \
 }G_STMT_END
 
index e57ed31..303b7b3 100644 (file)
@@ -41,7 +41,7 @@
 #include <gobject/gvaluecollector.h>
 #include <string.h>
 
-#define GST_TAG_IS_VALID(tag)          (gst_tag_get_info (tag) != NULL)
+#define GST_TAG_IS_VALID(tag)           (gst_tag_get_info (tag) != NULL)
 
 typedef struct
 {
@@ -867,7 +867,7 @@ gst_tag_list_get_value_index (const GstTagList * list, const gchar * tag,
  * You must g_value_unset() the value after use.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *         given list.
+ *          given list.
  */
 gboolean
 gst_tag_list_copy_value (GValue * dest, const GstTagList * list,
@@ -899,39 +899,39 @@ gst_tag_list_copy_value (GValue * dest, const GstTagList * list,
 
 /***** evil macros to get all the gst_tag_list_get_*() functions right *****/
 
-#define TAG_MERGE_FUNCS(name,type)                                     \
-gboolean                                                               \
-gst_tag_list_get_ ## name (const GstTagList *list, const gchar *tag,   \
-                          type *value)                                 \
-{                                                                      \
-  GValue v = { 0, };                                                   \
-                                                                       \
-  g_return_val_if_fail (GST_IS_TAG_LIST (list), FALSE);                        \
-  g_return_val_if_fail (tag != NULL, FALSE);                           \
-  g_return_val_if_fail (value != NULL, FALSE);                         \
-                                                                       \
-  if (!gst_tag_list_copy_value (&v, list, tag))                                \
-      return FALSE;                                                    \
-  *value = COPY_FUNC (g_value_get_ ## name (&v));                      \
-  g_value_unset (&v);                                                  \
-  return TRUE;                                                         \
-}                                                                      \
-                                                                       \
-gboolean                                                               \
-gst_tag_list_get_ ## name ## _index (const GstTagList *list,           \
-                                    const gchar *tag,                  \
-                                    guint index, type *value)          \
-{                                                                      \
-  const GValue *v;                                                     \
-                                                                       \
-  g_return_val_if_fail (GST_IS_TAG_LIST (list), FALSE);                        \
-  g_return_val_if_fail (tag != NULL, FALSE);                           \
-  g_return_val_if_fail (value != NULL, FALSE);                         \
-                                                                       \
-  if ((v = gst_tag_list_get_value_index (list, tag, index)) == NULL)   \
-      return FALSE;                                                    \
-  *value = COPY_FUNC (g_value_get_ ## name (v));                       \
-  return TRUE;                                                         \
+#define TAG_MERGE_FUNCS(name,type)                                      \
+gboolean                                                                \
+gst_tag_list_get_ ## name (const GstTagList *list, const gchar *tag,    \
+                           type *value)                                 \
+{                                                                       \
+  GValue v = { 0, };                                                    \
+                                                                        \
+  g_return_val_if_fail (GST_IS_TAG_LIST (list), FALSE);                 \
+  g_return_val_if_fail (tag != NULL, FALSE);                            \
+  g_return_val_if_fail (value != NULL, FALSE);                          \
+                                                                        \
+  if (!gst_tag_list_copy_value (&v, list, tag))                         \
+      return FALSE;                                                     \
+  *value = COPY_FUNC (g_value_get_ ## name (&v));                       \
+  g_value_unset (&v);                                                   \
+  return TRUE;                                                          \
+}                                                                       \
+                                                                        \
+gboolean                                                                \
+gst_tag_list_get_ ## name ## _index (const GstTagList *list,            \
+                                     const gchar *tag,                  \
+                                     guint index, type *value)          \
+{                                                                       \
+  const GValue *v;                                                      \
+                                                                        \
+  g_return_val_if_fail (GST_IS_TAG_LIST (list), FALSE);                 \
+  g_return_val_if_fail (tag != NULL, FALSE);                            \
+  g_return_val_if_fail (value != NULL, FALSE);                          \
+                                                                        \
+  if ((v = gst_tag_list_get_value_index (list, tag, index)) == NULL)    \
+      return FALSE;                                                     \
+  *value = COPY_FUNC (g_value_get_ ## name (v));                        \
+  return TRUE;                                                          \
 }
 
 #define COPY_FUNC /**/
@@ -945,7 +945,7 @@ gst_tag_list_get_ ## name ## _index (const GstTagList *list,                \
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_char_index:
@@ -958,7 +958,7 @@ gst_tag_list_get_ ## name ## _index (const GstTagList *list,                \
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (char, gchar)
 /**
@@ -971,7 +971,7 @@ TAG_MERGE_FUNCS (char, gchar)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_uchar_index:
@@ -984,7 +984,7 @@ TAG_MERGE_FUNCS (char, gchar)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (uchar, guchar)
 /**
@@ -997,7 +997,7 @@ TAG_MERGE_FUNCS (uchar, guchar)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_boolean_index:
@@ -1010,7 +1010,7 @@ TAG_MERGE_FUNCS (uchar, guchar)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (boolean, gboolean)
 /**
@@ -1023,7 +1023,7 @@ TAG_MERGE_FUNCS (boolean, gboolean)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_int_index:
@@ -1036,7 +1036,7 @@ TAG_MERGE_FUNCS (boolean, gboolean)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (int, gint)
 /**
@@ -1049,7 +1049,7 @@ TAG_MERGE_FUNCS (int, gint)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_uint_index:
@@ -1062,7 +1062,7 @@ TAG_MERGE_FUNCS (int, gint)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (uint, guint)
 /**
@@ -1075,7 +1075,7 @@ TAG_MERGE_FUNCS (uint, guint)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_long_index:
@@ -1088,7 +1088,7 @@ TAG_MERGE_FUNCS (uint, guint)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (long, glong)
 /**
@@ -1101,7 +1101,7 @@ TAG_MERGE_FUNCS (long, glong)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_ulong_index:
@@ -1114,7 +1114,7 @@ TAG_MERGE_FUNCS (long, glong)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (ulong, gulong)
 /**
@@ -1127,7 +1127,7 @@ TAG_MERGE_FUNCS (ulong, gulong)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_int64_index:
@@ -1140,7 +1140,7 @@ TAG_MERGE_FUNCS (ulong, gulong)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (int64, gint64)
 /**
@@ -1153,7 +1153,7 @@ TAG_MERGE_FUNCS (int64, gint64)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_uint64_index:
@@ -1166,7 +1166,7 @@ TAG_MERGE_FUNCS (int64, gint64)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (uint64, guint64)
 /**
@@ -1179,7 +1179,7 @@ TAG_MERGE_FUNCS (uint64, guint64)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_float_index:
@@ -1192,7 +1192,7 @@ TAG_MERGE_FUNCS (uint64, guint64)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (float, gfloat)
 /**
@@ -1205,7 +1205,7 @@ TAG_MERGE_FUNCS (float, gfloat)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_double_index:
@@ -1218,7 +1218,7 @@ TAG_MERGE_FUNCS (float, gfloat)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (double, gdouble)
 /**
@@ -1231,7 +1231,7 @@ TAG_MERGE_FUNCS (double, gdouble)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_pointer_index:
@@ -1244,7 +1244,7 @@ TAG_MERGE_FUNCS (double, gdouble)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (pointer, gpointer)
 #undef COPY_FUNC
@@ -1259,7 +1259,7 @@ TAG_MERGE_FUNCS (pointer, gpointer)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 /**
  * gst_tag_list_get_string_index:
@@ -1272,7 +1272,7 @@ TAG_MERGE_FUNCS (pointer, gpointer)
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list.
+ *              given list.
  */
 TAG_MERGE_FUNCS (string, gchar *)
 
@@ -1286,7 +1286,7 @@ TAG_MERGE_FUNCS (string, gchar *)
  * into one if multiple values are associated with the tag.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list or if it was #NULL.
+ *              given list or if it was #NULL.
  */
 gboolean
 gst_tag_list_get_date (const GstTagList * list, const gchar * tag,
@@ -1316,7 +1316,7 @@ gst_tag_list_get_date (const GstTagList * list, const gchar * tag,
  * list.
  *
  * Returns: TRUE, if a value was copied, FALSE if the tag didn't exist in the
- *             given list or if it was #NULL.
+ *              given list or if it was #NULL.
  */
 gboolean
 gst_tag_list_get_date_index (const GstTagList * list,
index dbcb975..1ec0a3e 100644 (file)
@@ -241,7 +241,7 @@ gst_tag_setter_add_tag_valist_values (GstTagSetter * setter,
  * modified or freed.
  *
  * Returns: a current snapshot of the taglist used in the setter
- *         or NULL if none is used.
+ *          or NULL if none is used.
  */
 G_CONST_RETURN GstTagList *
 gst_tag_setter_get_tag_list (GstTagSetter * setter)
index edad5ef..4c6d07f 100644 (file)
@@ -47,9 +47,9 @@ GST_DEBUG_CATEGORY_EXTERN (gst_type_find_debug);
  * @extensions: Optional extensions that could belong to this type
  * @possible_caps: Optionally the caps that could be returned when typefinding succeeds
  * @data: Optional user data. This user data must be available until the plugin
- *       is unloaded.
+ *        is unloaded.
  * @data_notify: a #GDestroyNotify that will be called on @data when the plugin
- *       is unloaded.
+ *        is unloaded.
  *
  * Registers a new typefind function to be used for typefinding. After
  * registering this function will be available for typefinding.
index c1eff57..23543b2 100644 (file)
@@ -1349,29 +1349,29 @@ gst_value_deserialize_boolean (GValue * dest, const gchar * s)
   return ret;
 }
 
-#define CREATE_SERIALIZATION_START(_type,_macro)                       \
-static gint                                                            \
-gst_value_compare_ ## _type                                            \
-(const GValue * value1, const GValue * value2)                         \
-{                                                                      \
-  g ## _type val1 = g_value_get_ ## _type (value1);                    \
-  g ## _type val2 = g_value_get_ ## _type (value2);                    \
-  if (val1 > val2)                                                     \
-    return GST_VALUE_GREATER_THAN;                                     \
-  if (val1 < val2)                                                     \
-    return GST_VALUE_LESS_THAN;                                                \
-  return GST_VALUE_EQUAL;                                              \
-}                                                                      \
-                                                                       \
-static char *                                                          \
-gst_value_serialize_ ## _type (const GValue * value)                   \
-{                                                                      \
-  GValue val = { 0, };                                                 \
-  g_value_init (&val, G_TYPE_STRING);                                  \
-  if (!g_value_transform (value, &val))                                        \
-    g_assert_not_reached ();                                           \
-  /* NO_COPY_MADNESS!!! */                                             \
-  return (char *) g_value_get_string (&val);                           \
+#define CREATE_SERIALIZATION_START(_type,_macro)                        \
+static gint                                                             \
+gst_value_compare_ ## _type                                             \
+(const GValue * value1, const GValue * value2)                          \
+{                                                                       \
+  g ## _type val1 = g_value_get_ ## _type (value1);                     \
+  g ## _type val2 = g_value_get_ ## _type (value2);                     \
+  if (val1 > val2)                                                      \
+    return GST_VALUE_GREATER_THAN;                                      \
+  if (val1 < val2)                                                      \
+    return GST_VALUE_LESS_THAN;                                         \
+  return GST_VALUE_EQUAL;                                               \
+}                                                                       \
+                                                                        \
+static char *                                                           \
+gst_value_serialize_ ## _type (const GValue * value)                    \
+{                                                                       \
+  GValue val = { 0, };                                                  \
+  g_value_init (&val, G_TYPE_STRING);                                   \
+  if (!g_value_transform (value, &val))                                 \
+    g_assert_not_reached ();                                            \
+  /* NO_COPY_MADNESS!!! */                                              \
+  return (char *) g_value_get_string (&val);                            \
 }
 
 /* deserialize the given s into to as a gint64.
@@ -1436,81 +1436,81 @@ gst_value_deserialize_int_helper (gint64 * to, const gchar * s,
   return ret;
 }
 
-#define CREATE_SERIALIZATION(_type,_macro)                             \
-CREATE_SERIALIZATION_START(_type,_macro)                               \
-                                                                       \
-static gboolean                                                                \
-gst_value_deserialize_ ## _type (GValue * dest, const gchar *s)                \
-{                                                                      \
-  gint64 x;                                                            \
-                                                                       \
-  if (gst_value_deserialize_int_helper (&x, s, G_MIN ## _macro,                \
-      G_MAX ## _macro, sizeof (g ## _type))) {                         \
-    g_value_set_ ## _type (dest, /*(g ## _type)*/ x);                  \
-    return TRUE;                                                       \
-  } else {                                                             \
-    return FALSE;                                                      \
-  }                                                                    \
-}
-
-#define CREATE_USERIALIZATION(_type,_macro)                            \
-CREATE_SERIALIZATION_START(_type,_macro)                               \
-                                                                       \
-static gboolean                                                                \
-gst_value_deserialize_ ## _type (GValue * dest, const gchar *s)                \
-{                                                                      \
-  gint64 x;                                                            \
-  char *end;                                                           \
-  gboolean ret = FALSE;                                                        \
-                                                                       \
-  errno = 0;                                                           \
-  x = g_ascii_strtoull (s, &end, 0);                                   \
-  /* a range error is a definitive no-no */                            \
-  if (errno == ERANGE) {                                               \
-    return FALSE;                                                      \
-  }                                                                    \
-  /* the cast ensures the range check later on makes sense */          \
-  x = (g ## _type) x;                                                  \
-  if (*end == 0) {                                                     \
-    ret = TRUE;                                                                \
-  } else {                                                             \
-    if (g_ascii_strcasecmp (s, "little_endian") == 0) {                        \
-      x = G_LITTLE_ENDIAN;                                             \
-      ret = TRUE;                                                      \
-    } else if (g_ascii_strcasecmp (s, "big_endian") == 0) {            \
-      x = G_BIG_ENDIAN;                                                        \
-      ret = TRUE;                                                      \
-    } else if (g_ascii_strcasecmp (s, "byte_order") == 0) {            \
-      x = G_BYTE_ORDER;                                                        \
-      ret = TRUE;                                                      \
-    } else if (g_ascii_strcasecmp (s, "min") == 0) {                   \
-      x = 0;                                                           \
-      ret = TRUE;                                                      \
-    } else if (g_ascii_strcasecmp (s, "max") == 0) {                   \
-      x = G_MAX ## _macro;                                             \
-      ret = TRUE;                                                      \
-    }                                                                  \
-  }                                                                    \
-  if (ret) {                                                           \
-    if (x > G_MAX ## _macro) {                                         \
-      ret = FALSE;                                                     \
-    } else {                                                           \
-      g_value_set_ ## _type (dest, x);                                 \
-    }                                                                  \
-  }                                                                    \
-  return ret;                                                          \
-}
-
-#define REGISTER_SERIALIZATION(_gtype, _type)                          \
-G_STMT_START {                                                         \
-  static const GstValueTable gst_value = {                             \
-    _gtype,                                                            \
-    gst_value_compare_ ## _type,                                       \
-    gst_value_serialize_ ## _type,                                     \
-    gst_value_deserialize_ ## _type,                                   \
-  };                                                                   \
-                                                                       \
-  gst_value_register (&gst_value);                                     \
+#define CREATE_SERIALIZATION(_type,_macro)                              \
+CREATE_SERIALIZATION_START(_type,_macro)                                \
+                                                                        \
+static gboolean                                                         \
+gst_value_deserialize_ ## _type (GValue * dest, const gchar *s)         \
+{                                                                       \
+  gint64 x;                                                             \
+                                                                        \
+  if (gst_value_deserialize_int_helper (&x, s, G_MIN ## _macro,         \
+      G_MAX ## _macro, sizeof (g ## _type))) {                          \
+    g_value_set_ ## _type (dest, /*(g ## _type)*/ x);                   \
+    return TRUE;                                                        \
+  } else {                                                              \
+    return FALSE;                                                       \
+  }                                                                     \
+}
+
+#define CREATE_USERIALIZATION(_type,_macro)                             \
+CREATE_SERIALIZATION_START(_type,_macro)                                \
+                                                                        \
+static gboolean                                                         \
+gst_value_deserialize_ ## _type (GValue * dest, const gchar *s)         \
+{                                                                       \
+  gint64 x;                                                             \
+  char *end;                                                            \
+  gboolean ret = FALSE;                                                 \
+                                                                        \
+  errno = 0;                                                            \
+  x = g_ascii_strtoull (s, &end, 0);                                    \
+  /* a range error is a definitive no-no */                             \
+  if (errno == ERANGE) {                                                \
+    return FALSE;                                                       \
+  }                                                                     \
+  /* the cast ensures the range check later on makes sense */           \
+  x = (g ## _type) x;                                                   \
+  if (*end == 0) {                                                      \
+    ret = TRUE;                                                         \
+  } else {                                                              \
+    if (g_ascii_strcasecmp (s, "little_endian") == 0) {                 \
+      x = G_LITTLE_ENDIAN;                                              \
+      ret = TRUE;                                                       \
+    } else if (g_ascii_strcasecmp (s, "big_endian") == 0) {             \
+      x = G_BIG_ENDIAN;                                                 \
+      ret = TRUE;                                                       \
+    } else if (g_ascii_strcasecmp (s, "byte_order") == 0) {             \
+      x = G_BYTE_ORDER;                                                 \
+      ret = TRUE;                                                       \
+    } else if (g_ascii_strcasecmp (s, "min") == 0) {                    \
+      x = 0;                                                            \
+      ret = TRUE;                                                       \
+    } else if (g_ascii_strcasecmp (s, "max") == 0) {                    \
+      x = G_MAX ## _macro;                                              \
+      ret = TRUE;                                                       \
+    }                                                                   \
+  }                                                                     \
+  if (ret) {                                                            \
+    if (x > G_MAX ## _macro) {                                          \
+      ret = FALSE;                                                      \
+    } else {                                                            \
+      g_value_set_ ## _type (dest, x);                                  \
+    }                                                                   \
+  }                                                                     \
+  return ret;                                                           \
+}
+
+#define REGISTER_SERIALIZATION(_gtype, _type)                           \
+G_STMT_START {                                                          \
+  static const GstValueTable gst_value = {                              \
+    _gtype,                                                             \
+    gst_value_compare_ ## _type,                                        \
+    gst_value_serialize_ ## _type,                                      \
+    gst_value_deserialize_ ## _type,                                    \
+  };                                                                    \
+                                                                        \
+  gst_value_register (&gst_value);                                      \
 } G_STMT_END
 
 CREATE_SERIALIZATION (int, INT);
@@ -3650,19 +3650,19 @@ static GTypeFundamentalInfo _finfo = {
   0
 };
 
-#define FUNC_VALUE_GET_TYPE(type, name)                                \
-GType gst_ ## type ## _get_type (void)                         \
-{                                                              \
-  static GType gst_ ## type ## _type = 0;                      \
-                                                               \
-  if (!gst_ ## type ## _type) {                                        \
-    _info.value_table = & _gst_ ## type ## _value_table;       \
-    gst_ ## type ## _type = g_type_register_fundamental (      \
-        g_type_fundamental_next (),                            \
-        name, &_info, &_finfo, 0);                             \
-  }                                                            \
-                                                               \
-  return gst_ ## type ## _type;                                        \
+#define FUNC_VALUE_GET_TYPE(type, name)                         \
+GType gst_ ## type ## _get_type (void)                          \
+{                                                               \
+  static GType gst_ ## type ## _type = 0;                       \
+                                                                \
+  if (!gst_ ## type ## _type) {                                 \
+    _info.value_table = & _gst_ ## type ## _value_table;        \
+    gst_ ## type ## _type = g_type_register_fundamental (       \
+        g_type_fundamental_next (),                             \
+        name, &_info, &_finfo, 0);                              \
+  }                                                             \
+                                                                \
+  return gst_ ## type ## _type;                                 \
 }
 
 static const GTypeValueTable _gst_fourcc_value_table = {
index 02111c3..44f1932 100644 (file)
@@ -52,8 +52,8 @@
 #include <gst/gstmarshal.h>
 #include <gst/gst-i18n-lib.h>
 
-#define DEFAULT_BLOCKSIZE      4096
-#define DEFAULT_NUM_BUFFERS    -1
+#define DEFAULT_BLOCKSIZE       4096
+#define DEFAULT_NUM_BUFFERS     -1
 
 GST_DEBUG_CATEGORY_STATIC (gst_base_src_debug);
 #define GST_CAT_DEFAULT gst_base_src_debug
@@ -65,7 +65,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_base_src_debug);
 #define GST_LIVE_GET_COND(elem)               (GST_BASE_SRC_CAST(elem)->live_cond)
 #define GST_LIVE_WAIT(elem)                   g_cond_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem))
 #define GST_LIVE_TIMED_WAIT(elem, timeval)    g_cond_timed_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem),\
-                                                                               timeval)
+                                                                                timeval)
 #define GST_LIVE_SIGNAL(elem)                 g_cond_signal (GST_LIVE_GET_COND (elem));
 #define GST_LIVE_BROADCAST(elem)              g_cond_broadcast (GST_LIVE_GET_COND (elem));
 
index 4f24f9a..78bf15f 100644 (file)
@@ -74,20 +74,20 @@ GST_DEBUG_CATEGORY (ncc_debug);
 #define WRITE_SOCKET(self)      self->control_sock[1]
 #define READ_SOCKET(self)       self->control_sock[0]
 
-#define SEND_COMMAND(self, command)                    \
-G_STMT_START {                                         \
-  unsigned char c; c = command;                        \
-  write (WRITE_SOCKET(self), &c, 1);           \
+#define SEND_COMMAND(self, command)                     \
+G_STMT_START {                                  \
+  unsigned char c; c = command;                 \
+  write (WRITE_SOCKET(self), &c, 1);            \
 } G_STMT_END
 
-#define READ_COMMAND(self, command, res)               \
-G_STMT_START {                                 \
+#define READ_COMMAND(self, command, res)                \
+G_STMT_START {                                  \
   res = read(READ_SOCKET(self), &command, 1);    \
 } G_STMT_END
 
-#define DEFAULT_ADDRESS                "127.0.0.1"
-#define DEFAULT_PORT           5637
-#define DEFAULT_TIMEOUT                GST_SECOND
+#define DEFAULT_ADDRESS         "127.0.0.1"
+#define DEFAULT_PORT            5637
+#define DEFAULT_TIMEOUT         GST_SECOND
 
 enum
 {
index 00e8094..cb02905 100644 (file)
@@ -60,19 +60,19 @@ GST_DEBUG_CATEGORY (ntp_debug);
 #define WRITE_SOCKET(self)      self->control_sock[1]
 #define READ_SOCKET(self)       self->control_sock[0]
 
-#define SEND_COMMAND(self, command)                    \
-G_STMT_START {                                         \
-  unsigned char c; c = command;                        \
-  write (WRITE_SOCKET(self), &c, 1);           \
+#define SEND_COMMAND(self, command)                     \
+G_STMT_START {                                  \
+  unsigned char c; c = command;                 \
+  write (WRITE_SOCKET(self), &c, 1);            \
 } G_STMT_END
 
-#define READ_COMMAND(self, command, res)               \
-G_STMT_START {                                 \
+#define READ_COMMAND(self, command, res)                \
+G_STMT_START {                                  \
   res = read(READ_SOCKET(self), &command, 1);    \
 } G_STMT_END
 
-#define DEFAULT_ADDRESS                "0.0.0.0"
-#define DEFAULT_PORT           5637
+#define DEFAULT_ADDRESS         "0.0.0.0"
+#define DEFAULT_PORT            5637
 
 enum
 {
index 4cd481f..32fa8d1 100644 (file)
@@ -81,20 +81,20 @@ enum
   LAST_SIGNAL
 };
 
-#define DEFAULT_OUTPUT         FAKE_SRC_FIRST_LAST_LOOP
-#define DEFAULT_DATA           FAKE_SRC_DATA_ALLOCATE
-#define DEFAULT_SIZETYPE       FAKE_SRC_SIZETYPE_EMPTY
-#define DEFAULT_SIZEMIN                0
-#define DEFAULT_SIZEMAX                4096
-#define DEFAULT_FILLTYPE       FAKE_SRC_FILLTYPE_ZERO
-#define DEFAULT_DATARATE       0
-#define DEFAULT_SYNC           FALSE
-#define DEFAULT_PATTERN                NULL
-#define DEFAULT_EOS            FALSE
+#define DEFAULT_OUTPUT          FAKE_SRC_FIRST_LAST_LOOP
+#define DEFAULT_DATA            FAKE_SRC_DATA_ALLOCATE
+#define DEFAULT_SIZETYPE        FAKE_SRC_SIZETYPE_EMPTY
+#define DEFAULT_SIZEMIN         0
+#define DEFAULT_SIZEMAX         4096
+#define DEFAULT_FILLTYPE        FAKE_SRC_FILLTYPE_ZERO
+#define DEFAULT_DATARATE        0
+#define DEFAULT_SYNC            FALSE
+#define DEFAULT_PATTERN         NULL
+#define DEFAULT_EOS             FALSE
 #define DEFAULT_SIGNAL_HANDOFFS FALSE
-#define DEFAULT_SILENT         FALSE
-#define DEFAULT_DUMP           FALSE
-#define DEFAULT_PARENTSIZE     4096*10
+#define DEFAULT_SILENT          FALSE
+#define DEFAULT_DUMP            FALSE
+#define DEFAULT_PARENTSIZE      4096*10
 #define DEFAULT_CAN_ACTIVATE_PULL TRUE
 #define DEFAULT_CAN_ACTIVATE_PUSH TRUE
 
index f2c82e3..1c9c8f9 100644 (file)
@@ -60,7 +60,7 @@ G_STMT_START {                                 \
   res = read(READ_SOCKET(src), &command, 1);   \
 } G_STMT_END
 
-#define DEFAULT_BLOCKSIZE      4096
+#define DEFAULT_BLOCKSIZE       4096
 
 static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
index cebf81f..bceb233 100644 (file)
@@ -129,9 +129,9 @@ enum
   LAST_SIGNAL
 };
 
-#define DEFAULT_BLOCKSIZE      4*1024
-#define DEFAULT_MMAPSIZE       4*1024*1024
-#define DEFAULT_TOUCH          FALSE
+#define DEFAULT_BLOCKSIZE       4*1024
+#define DEFAULT_MMAPSIZE        4*1024*1024
+#define DEFAULT_TOUCH           FALSE
 
 enum
 {
index 2e8a7a5..7b58076 100644 (file)
@@ -59,16 +59,16 @@ enum
   LAST_SIGNAL
 };
 
-#define DEFAULT_SLEEP_TIME             0
-#define DEFAULT_DUPLICATE              1
-#define DEFAULT_ERROR_AFTER            -1
-#define DEFAULT_DROP_PROBABILITY       0.0
-#define DEFAULT_DATARATE               0
-#define DEFAULT_SILENT                 FALSE
-#define DEFAULT_SINGLE_SEGMENT         FALSE
-#define DEFAULT_DUMP                   FALSE
-#define DEFAULT_SYNC                   FALSE
-#define DEFAULT_CHECK_PERFECT          FALSE
+#define DEFAULT_SLEEP_TIME              0
+#define DEFAULT_DUPLICATE               1
+#define DEFAULT_ERROR_AFTER             -1
+#define DEFAULT_DROP_PROBABILITY        0.0
+#define DEFAULT_DATARATE                0
+#define DEFAULT_SILENT                  FALSE
+#define DEFAULT_SINGLE_SEGMENT          FALSE
+#define DEFAULT_DUMP                    FALSE
+#define DEFAULT_SYNC                    FALSE
+#define DEFAULT_CHECK_PERFECT           FALSE
 
 enum
 {
index 2723500..91b0713 100644 (file)
@@ -60,20 +60,20 @@ GST_DEBUG_CATEGORY_STATIC (queue_dataflow);
 
 #define STATUS(queue, msg) \
   GST_CAT_LOG_OBJECT (queue_dataflow, queue, \
-                     "(%s:%s) " msg ": %u of %u-%u buffers, %u of %u-%u " \
-                     "bytes, %" G_GUINT64_FORMAT " of %" G_GUINT64_FORMAT \
-                     "-%" G_GUINT64_FORMAT " ns, %u elements", \
-                     GST_DEBUG_PAD_NAME (pad), \
-                     queue->cur_level.buffers, \
-                     queue->min_threshold.buffers, \
-                     queue->max_size.buffers, \
-                     queue->cur_level.bytes, \
-                     queue->min_threshold.bytes, \
-                     queue->max_size.bytes, \
-                     queue->cur_level.time, \
-                     queue->min_threshold.time, \
-                     queue->max_size.time, \
-                     queue->queue->length)
+                      "(%s:%s) " msg ": %u of %u-%u buffers, %u of %u-%u " \
+                      "bytes, %" G_GUINT64_FORMAT " of %" G_GUINT64_FORMAT \
+                      "-%" G_GUINT64_FORMAT " ns, %u elements", \
+                      GST_DEBUG_PAD_NAME (pad), \
+                      queue->cur_level.buffers, \
+                      queue->min_threshold.buffers, \
+                      queue->max_size.buffers, \
+                      queue->cur_level.bytes, \
+                      queue->min_threshold.bytes, \
+                      queue->max_size.bytes, \
+                      queue->cur_level.time, \
+                      queue->min_threshold.time, \
+                      queue->max_size.time, \
+                      queue->queue->length)
 
 static GstElementDetails gst_queue_details = GST_ELEMENT_DETAILS ("Queue",
     "Generic",
@@ -108,27 +108,27 @@ enum
   /* FILL ME */
 };
 
-#define GST_QUEUE_MUTEX_LOCK(q) G_STMT_START {                         \
-  GST_CAT_LOG_OBJECT (queue_dataflow, q,                               \
-      "locking qlock from thread %p",                                  \
-      g_thread_self ());                                               \
-  g_mutex_lock (q->qlock);                                             \
-  GST_CAT_LOG_OBJECT (queue_dataflow, q,                               \
-      "locked qlock from thread %p",                                   \
-      g_thread_self ());                                               \
+#define GST_QUEUE_MUTEX_LOCK(q) G_STMT_START {                          \
+  GST_CAT_LOG_OBJECT (queue_dataflow, q,                                \
+      "locking qlock from thread %p",                                   \
+      g_thread_self ());                                                \
+  g_mutex_lock (q->qlock);                                              \
+  GST_CAT_LOG_OBJECT (queue_dataflow, q,                                \
+      "locked qlock from thread %p",                                    \
+      g_thread_self ());                                                \
 } G_STMT_END
 
-#define GST_QUEUE_MUTEX_LOCK_CHECK(q,label) G_STMT_START {             \
-  GST_QUEUE_MUTEX_LOCK (q);                                            \
-  if (q->srcresult != GST_FLOW_OK)                                     \
-    goto label;                                                                \
+#define GST_QUEUE_MUTEX_LOCK_CHECK(q,label) G_STMT_START {              \
+  GST_QUEUE_MUTEX_LOCK (q);                                             \
+  if (q->srcresult != GST_FLOW_OK)                                      \
+    goto label;                                                         \
 } G_STMT_END
 
-#define GST_QUEUE_MUTEX_UNLOCK(q) G_STMT_START {                       \
-  GST_CAT_LOG_OBJECT (queue_dataflow, q,                               \
-      "unlocking qlock from thread %p",                                        \
-      g_thread_self ());                                               \
-  g_mutex_unlock (q->qlock);                                           \
+#define GST_QUEUE_MUTEX_UNLOCK(q) G_STMT_START {                        \
+  GST_CAT_LOG_OBJECT (queue_dataflow, q,                                \
+      "unlocking qlock from thread %p",                                 \
+      g_thread_self ());                                                \
+  g_mutex_unlock (q->qlock);                                            \
 } G_STMT_END
 
 
@@ -497,20 +497,20 @@ gst_queue_locked_flush (GstQueue * queue)
 
 #define STATUS(queue, msg) \
   GST_CAT_LOG_OBJECT (queue_dataflow, queue, \
-                     "(%s:%s) " msg ": %u of %u-%u buffers, %u of %u-%u " \
-                     "bytes, %" G_GUINT64_FORMAT " of %" G_GUINT64_FORMAT \
-                     "-%" G_GUINT64_FORMAT " ns, %u elements", \
-                     GST_DEBUG_PAD_NAME (pad), \
-                     queue->cur_level.buffers, \
-                     queue->min_threshold.buffers, \
-                     queue->max_size.buffers, \
-                     queue->cur_level.bytes, \
-                     queue->min_threshold.bytes, \
-                     queue->max_size.bytes, \
-                     queue->cur_level.time, \
-                     queue->min_threshold.time, \
-                     queue->max_size.time, \
-                     queue->queue->length)
+                      "(%s:%s) " msg ": %u of %u-%u buffers, %u of %u-%u " \
+                      "bytes, %" G_GUINT64_FORMAT " of %" G_GUINT64_FORMAT \
+                      "-%" G_GUINT64_FORMAT " ns, %u elements", \
+                      GST_DEBUG_PAD_NAME (pad), \
+                      queue->cur_level.buffers, \
+                      queue->min_threshold.buffers, \
+                      queue->max_size.buffers, \
+                      queue->cur_level.bytes, \
+                      queue->min_threshold.bytes, \
+                      queue->max_size.bytes, \
+                      queue->cur_level.time, \
+                      queue->min_threshold.time, \
+                      queue->max_size.time, \
+                      queue->queue->length)
 
 static gboolean
 gst_queue_handle_sink_event (GstPad * pad, GstEvent * event)
index 33bd983..13c5fac 100644 (file)
@@ -103,8 +103,8 @@ enum
 
 
 #define _do_init(bla) \
-    GST_DEBUG_CATEGORY_INIT (gst_type_find_element_debug, "typefind",          \
-       GST_DEBUG_BG_YELLOW | GST_DEBUG_FG_GREEN, "type finding element");
+    GST_DEBUG_CATEGORY_INIT (gst_type_find_element_debug, "typefind",           \
+        GST_DEBUG_BG_YELLOW | GST_DEBUG_FG_GREEN, "type finding element");
 
 GST_BOILERPLATE_FULL (GstTypeFindElement, gst_type_find_element, GstElement,
     GST_TYPE_ELEMENT, _do_init);
index 40a5d4c..52f704a 100644 (file)
 #include <fcntl.h>
 #include <string.h>
 
-#define GST_TYPE_FILE_INDEX            \
+#define GST_TYPE_FILE_INDEX             \
   (gst_file_index_get_type ())
-#define GST_FILE_INDEX(obj)            \
+#define GST_FILE_INDEX(obj)             \
   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_FILE_INDEX, GstFileIndex))
-#define GST_FILE_INDEX_CLASS(klass)    \
+#define GST_FILE_INDEX_CLASS(klass)     \
   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_FILE_INDEX, GstFileIndexClass))
-#define GST_IS_FILE_INDEX(obj)         \
+#define GST_IS_FILE_INDEX(obj)          \
   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_FILE_INDEX))
-#define GST_IS_FILE_INDEX_CLASS(obj)   \
+#define GST_IS_FILE_INDEX_CLASS(obj)    \
   (GST_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_FILE_INDEX))
 
 /*
@@ -830,12 +830,12 @@ show_entry (GstIndexEntry *entry)
   switch (entry->type) {
     case GST_INDEX_ENTRY_ID:
       g_print ("id %d describes writer %s\n", entry->id,
-                     GST_INDEX_ID_DESCRIPTION (entry));
+                      GST_INDEX_ID_DESCRIPTION (entry));
       break;
     case GST_INDEX_ENTRY_FORMAT:
       g_print ("%d: registered format %d for %s\n", entry->id,
-                     GST_INDEX_FORMAT_FORMAT (entry),
-                     GST_INDEX_FORMAT_KEY (entry));
+                      GST_INDEX_FORMAT_FORMAT (entry),
+                      GST_INDEX_FORMAT_KEY (entry));
       break;
     case GST_INDEX_ENTRY_ASSOCIATION:
     {
@@ -843,8 +843,8 @@ show_entry (GstIndexEntry *entry)
 
       g_print ("%d: %08x ", entry->id, GST_INDEX_ASSOC_FLAGS (entry));
       for (i = 0; i < GST_INDEX_NASSOCS (entry); i++) {
-       g_print ("%d %lld ", GST_INDEX_ASSOC_FORMAT (entry, i),
-                            GST_INDEX_ASSOC_VALUE (entry, i));
+        g_print ("%d %lld ", GST_INDEX_ASSOC_FORMAT (entry, i),
+                             GST_INDEX_ASSOC_VALUE (entry, i));
       }
       g_print ("\n");
       break;
index 367028f..75590a9 100644 (file)
 
 #include <gst/gst.h>
 
-#define GST_TYPE_MEM_INDEX             \
+#define GST_TYPE_MEM_INDEX              \
   (gst_index_get_type ())
-#define GST_MEM_INDEX(obj)             \
+#define GST_MEM_INDEX(obj)              \
   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_MEM_INDEX, GstMemIndex))
-#define GST_MEM_INDEX_CLASS(klass)     \
+#define GST_MEM_INDEX_CLASS(klass)      \
   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_MEM_INDEX, GstMemIndexClass))
-#define GST_IS_MEM_INDEX(obj)          \
+#define GST_IS_MEM_INDEX(obj)           \
   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MEM_INDEX))
-#define GST_IS_MEM_INDEX_CLASS(obj)    \
+#define GST_IS_MEM_INDEX_CLASS(obj)     \
   (GST_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MEM_INDEX))
 
 /*
index 1fab1df..ab32b48 100644 (file)
@@ -57,48 +57,48 @@ check_tags (const GstTagList * list, const gchar * tag, gchar * value, ...)
   va_end (args);
 }
 
-#define NEW_LIST_FIXED(mode)                                   \
-G_STMT_START {                                                 \
-  if (list) gst_tag_list_free (list);                          \
-  list = gst_tag_list_new ();                                  \
-  gst_tag_list_add (list, mode, FTAG, FIXED1, FTAG, FIXED2,    \
-                   FTAG, FIXED3, FTAG, FIXED4, NULL);          \
+#define NEW_LIST_FIXED(mode)                                    \
+G_STMT_START {                                                  \
+  if (list) gst_tag_list_free (list);                           \
+  list = gst_tag_list_new ();                                   \
+  gst_tag_list_add (list, mode, FTAG, FIXED1, FTAG, FIXED2,     \
+                    FTAG, FIXED3, FTAG, FIXED4, NULL);          \
 } G_STMT_END;
 
-#define NEW_LIST_UNFIXED(mode)                                 \
-G_STMT_START {                                                 \
-  if (list) gst_tag_list_free (list);                          \
-  list = gst_tag_list_new ();                                  \
+#define NEW_LIST_UNFIXED(mode)                                  \
+G_STMT_START {                                                  \
+  if (list) gst_tag_list_free (list);                           \
+  list = gst_tag_list_new ();                                   \
   gst_tag_list_add (list, mode, UTAG, UNFIXED1, UTAG, UNFIXED2, \
-                   UTAG, UNFIXED3, UTAG, UNFIXED4, NULL);      \
+                    UTAG, UNFIXED3, UTAG, UNFIXED4, NULL);      \
 } G_STMT_END;
 
-#define NEW_LISTS_FIXED(mode)                                  \
-G_STMT_START {                                                 \
-  if (list) gst_tag_list_free (list);                          \
-  list = gst_tag_list_new ();                                  \
-  gst_tag_list_add (list, GST_TAG_MERGE_APPEND, FTAG, FIXED1,  \
-                   FTAG, FIXED2, NULL);                        \
-  if (list2) gst_tag_list_free (list2);                                \
-  list2 = gst_tag_list_new ();                                 \
+#define NEW_LISTS_FIXED(mode)                                   \
+G_STMT_START {                                                  \
+  if (list) gst_tag_list_free (list);                           \
+  list = gst_tag_list_new ();                                   \
+  gst_tag_list_add (list, GST_TAG_MERGE_APPEND, FTAG, FIXED1,   \
+                    FTAG, FIXED2, NULL);                        \
+  if (list2) gst_tag_list_free (list2);                         \
+  list2 = gst_tag_list_new ();                                  \
   gst_tag_list_add (list2, GST_TAG_MERGE_APPEND, FTAG, FIXED3,  \
-                   FTAG, FIXED4, NULL);                        \
-  if (merge) gst_tag_list_free (merge);                                \
-  merge = gst_tag_list_merge (list, list2, mode);              \
+                    FTAG, FIXED4, NULL);                        \
+  if (merge) gst_tag_list_free (merge);                         \
+  merge = gst_tag_list_merge (list, list2, mode);               \
 } G_STMT_END;
 
-#define NEW_LISTS_UNFIXED(mode)                                        \
-G_STMT_START {                                                 \
-  if (list) gst_tag_list_free (list);                          \
-  list = gst_tag_list_new ();                                  \
+#define NEW_LISTS_UNFIXED(mode)                                 \
+G_STMT_START {                                                  \
+  if (list) gst_tag_list_free (list);                           \
+  list = gst_tag_list_new ();                                   \
   gst_tag_list_add (list, GST_TAG_MERGE_APPEND, UTAG, UNFIXED1, \
-                   UTAG, UNFIXED2, NULL);                      \
-  if (list2) gst_tag_list_free (list2);                                \
-  list2 = gst_tag_list_new ();                                 \
+                    UTAG, UNFIXED2, NULL);                      \
+  if (list2) gst_tag_list_free (list2);                         \
+  list2 = gst_tag_list_new ();                                  \
   gst_tag_list_add (list2, GST_TAG_MERGE_APPEND, UTAG, UNFIXED3,\
-                   UTAG, UNFIXED4, NULL);                      \
-  if (merge) gst_tag_list_free (merge);                                \
-  merge = gst_tag_list_merge (list, list2, mode);              \
+                    UTAG, UNFIXED4, NULL);                      \
+  if (merge) gst_tag_list_free (merge);                         \
+  merge = gst_tag_list_merge (list, list2, mode);               \
 } G_STMT_END;
 
 
@@ -214,7 +214,8 @@ GST_START_TEST (test_date_tags)
   gst_tag_list_free (tag_list);
   g_date_free (date);
 }
-GST_END_TEST Suite * gst_tag_suite (void)
+GST_END_TEST Suite *
+gst_tag_suite (void)
 {
   Suite *s = suite_create ("GstTag");
   TCase *tc_chain = tcase_create ("general");
index aa98167..26e0c04 100644 (file)
@@ -4,9 +4,9 @@
  * construct a simple pipeline osssrc ! cutter ! filesink
  * pause when necessary, change output
  *
- * Latest change :     03/06/2001
+ * Latest change :      03/06/2001
  *
- * Version :           0.3
+ * Version :            0.3
  */
 
 #include <stdlib.h>
index aebb0cb..0dd703a 100644 (file)
@@ -4,13 +4,13 @@
  * demonstrates the adder plugin and the volume envelope plugin
  * work in progress but do try it out
  *
- * Latest change :     28/08/2001
- *                                     trying to adapt to incsched
- *                                     delayed start for channels > 1
- *                                     now works by quickhacking the
- *                                     adder plugin to set
- *                                     GST_ELEMENT_COTHREAD_STOPPING
- * Version :           0.5.1
+ * Latest change :      28/08/2001
+ *                                      trying to adapt to incsched
+ *                                      delayed start for channels > 1
+ *                                      now works by quickhacking the
+ *                                      adder plugin to set
+ *                                      GST_ELEMENT_COTHREAD_STOPPING
+ * Version :            0.5.1
  */
 
 #include <stdlib.h>
@@ -21,7 +21,7 @@
 /*#define WITH_BUG */
 /*#define WITH_BUG2 */
 /*#define DEBUG */
-/*#define AUTOPLUG     * define if you want autoplugging of input channels * */
+/*#define AUTOPLUG      * define if you want autoplugging of input channels * */
 /* function prototypes */
 
 input_channel_t *create_input_channel (int id, char *location);
index 698ea67..853634f 100644 (file)
@@ -39,7 +39,7 @@ main (int argc, char *argv[])
   xml = gst_xml_new ();
 
 /*  g_signal_connect (G_OBJECT (xml), "object_loaded", */
-/*                 G_CALLBACK (xml_loaded), xml); */
+/*                  G_CALLBACK (xml_loaded), xml); */
 
   if (argc == 2)
     ret = gst_xml_parse_file (xml, argv[1], NULL);
index 0690574..48dc8b2 100644 (file)
@@ -37,8 +37,8 @@ GST_CAPS_FACTORY (rawcaps4,
                     GST_PROPS_FOURCC (GST_STR_FOURCC ("YUY2")),
                     GST_PROPS_FOURCC (GST_STR_FOURCC ("YV12")),
                     GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV"))
-                 ),
-      "height",          GST_PROPS_INT_RANGE (16, 4096)
+                  ),
+      "height",   GST_PROPS_INT_RANGE (16, 4096)
   )
 );
 
@@ -49,7 +49,7 @@ GST_CAPS_FACTORY (rawcaps5,
       "fourcc",   GST_PROPS_LIST (
                     GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
                     GST_PROPS_FOURCC (GST_STR_FOURCC ("YUY2"))
-                 ),
+                  ),
       "height",   GST_PROPS_INT_RANGE (16, 4096)
   )
 );
index f8fc02b..6d931a0 100644 (file)
@@ -24,8 +24,8 @@
 
 #include <gst/gst.h>
 
-#define THREAD_COUNT   5
-#define ITERATIONS     20
+#define THREAD_COUNT    5
+#define ITERATIONS      20
 
 /* stupid logging functions */
 static void
index 5a6c338..d5b618a 100644 (file)
@@ -34,56 +34,56 @@ static gint i;
 static gboolean b;
 static gchar *s;
 
-#define TEST_CHECK_FAIL(condition) G_STMT_START{                       \
-  if (condition) {                                                     \
-    g_print ("TEST %2d line %3d    OK\n", test, __LINE__);             \
-  } else {                                                             \
-    g_print ("TEST %2d line %3d  FAILED : %s\n", test, __LINE__,       \
-        #condition);                                                   \
-    return -test;                                                      \
-  }                                                                    \
+#define TEST_CHECK_FAIL(condition) G_STMT_START{                        \
+  if (condition) {                                                      \
+    g_print ("TEST %2d line %3d    OK\n", test, __LINE__);              \
+  } else {                                                              \
+    g_print ("TEST %2d line %3d  FAILED : %s\n", test, __LINE__,        \
+        #condition);                                                    \
+    return -test;                                                       \
+  }                                                                     \
 }G_STMT_END
 
-#define TEST_START(pipeline) G_STMT_START{                             \
-  g_print ("TEST %2d line %3d  START   : %s\n", ++test, __LINE__,      \
-      pipeline);                                                       \
-  cur = gst_parse_launch (pipeline, &error);                           \
-  if (error == NULL) {                                                 \
-    g_print ("TEST %2d line %3d CREATED\n", test, __LINE__);           \
-  } else {                                                             \
-    g_print ("TEST %2d line %3d  FAILED  : %s\n", test, __LINE__,      \
-        error->message);                                               \
-    g_error_free (error);                                              \
-    return -test;                                                      \
-  }                                                                    \
+#define TEST_START(pipeline) G_STMT_START{                              \
+  g_print ("TEST %2d line %3d  START   : %s\n", ++test, __LINE__,       \
+      pipeline);                                                        \
+  cur = gst_parse_launch (pipeline, &error);                            \
+  if (error == NULL) {                                                  \
+    g_print ("TEST %2d line %3d CREATED\n", test, __LINE__);            \
+  } else {                                                              \
+    g_print ("TEST %2d line %3d  FAILED  : %s\n", test, __LINE__,       \
+        error->message);                                                \
+    g_error_free (error);                                               \
+    return -test;                                                       \
+  }                                                                     \
 }G_STMT_END
 
-#define TEST_OK G_STMT_START{                                          \
-  gst_object_unref (cur);                                      \
-  cur = NULL;                                                          \
-  g_print ("TEST %2d line %3d COMPLETE\n", test, __LINE__);            \
+#define TEST_OK G_STMT_START{                                           \
+  gst_object_unref (cur);                                       \
+  cur = NULL;                                                           \
+  g_print ("TEST %2d line %3d COMPLETE\n", test, __LINE__);             \
 }G_STMT_END
 
-#define TEST_RUN G_STMT_START{                                         \
-  alarm(10);                                                           \
-  g_print ("TEST %2d line %3d   RUN\n", test, __LINE__);               \
-  if (gst_element_set_state (cur, GST_STATE_PLAYING)                   \
-      == GST_STATE_CHANGE_FAILURE) {                                           \
-    g_print ("TEST %2d line %3d  FAILED  : "                           \
-        "pipeline could not be set to PLAYING\n", test, __LINE__);     \
-    return -test;                                                      \
-  }                                                                    \
-  iterations = 0;                                                      \
-  while (gst_bin_iterate (GST_BIN (cur))) iterations++;                        \
-  if (gst_element_set_state (cur, GST_STATE_NULL)                      \
-      == GST_STATE_CHANGE_FAILURE) {                                           \
-    g_print ("TEST %2d line %3d  FAILED  : "                           \
-        "pipeline could not be reset to state NULL\n", test, __LINE__);        \
-    return -test;                                                      \
-  }                                                                    \
-  g_print ("TEST %2d line %3d STOPPED  : %u iterations\n",             \
-      test, __LINE__, iterations);                                     \
-  alarm(0);                                                            \
+#define TEST_RUN G_STMT_START{                                          \
+  alarm(10);                                                            \
+  g_print ("TEST %2d line %3d   RUN\n", test, __LINE__);                \
+  if (gst_element_set_state (cur, GST_STATE_PLAYING)                    \
+      == GST_STATE_CHANGE_FAILURE) {                                            \
+    g_print ("TEST %2d line %3d  FAILED  : "                            \
+        "pipeline could not be set to PLAYING\n", test, __LINE__);      \
+    return -test;                                                       \
+  }                                                                     \
+  iterations = 0;                                                       \
+  while (gst_bin_iterate (GST_BIN (cur))) iterations++;                 \
+  if (gst_element_set_state (cur, GST_STATE_NULL)                       \
+      == GST_STATE_CHANGE_FAILURE) {                                            \
+    g_print ("TEST %2d line %3d  FAILED  : "                            \
+        "pipeline could not be reset to state NULL\n", test, __LINE__); \
+    return -test;                                                       \
+  }                                                                     \
+  g_print ("TEST %2d line %3d STOPPED  : %u iterations\n",              \
+      test, __LINE__, iterations);                                      \
+  alarm(0);                                                             \
 }G_STMT_END
 
 #define PIPELINE1  "fakesrc"
index 1c67790..04bfd26 100644 (file)
@@ -41,7 +41,7 @@ G_STMT_START{                                                   \
 
 #define PUT_STRING(pfx, str, a...)                              \
 G_STMT_START{                                                   \
-  g_print ("%*.*s"str"\n", pfx, pfx, "" , ##a);                        \
+  g_print ("%*.*s"str"\n", pfx, pfx, "" , ##a);                 \
 }G_STMT_END
 
 #else
index f730fea..77b7ec9 100644 (file)
@@ -11,7 +11,7 @@
  *\r
  * Resource leaks fixed by <steve.lhomme@free.fr>\r
  *\r
- *     \r
+ *      \r
  * $Revision$\r
  * $Author$\r
  * $Date$\r
@@ -25,8 +25,8 @@
 #include <direct.h>\r
 #include <dirent.h>\r
 #include <gtchar.h>\r
-#define SUFFIX _T("*")\r
-#define        SLASH   _T("\\")\r
+#define SUFFIX  _T("*")\r
+#define SLASH   _T("\\")\r
     \r
 #include <stdio.h>\r
     \r