summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d257b4)
raw | patch | inline | side by side (parent: 2d257b4)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Tue, 6 Dec 2005 19:29:15 +0000 (19:29 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Tue, 6 Dec 2005 19:29:15 +0000 (19:29 +0000) |
Original commit message from CVS:
expand tabs
expand tabs
37 files changed:
diff --git a/ChangeLog b/ChangeLog
index 5349a7f476d5214732237e9127b09365d0e71d19..dafd45d75e8afbf3946b3a03bdbccd1d2bc73e26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+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 0277c7c033cb19094cb61eb0cb5c150a6d1759d1..c5446c903fd8e334d58b62b203a9794cbf0707ba 100644 (file)
#GstBuffer, #GstCaps, #GstEvent
</para>
+<!-- ##### SECTION Stability_Level ##### -->
+
+
<!-- ##### ENUM GstDPHeaderFlag ##### -->
<para>
index 41f11b82d108538d2d9939ed9c342bef334b8cf0..d188f49c1416d593b13414f74a2d456fd9cb89f3 100644 (file)
#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
diff --git a/gst/gst.c b/gst/gst.c
index b2fca6404ba72bb044944a4c21258f9f164857b1..95845193048aa9be124bbab64c0cf6eacf7a1d55 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;
diff --git a/gst/gstclock.c b/gst/gstclock.c
index e5305427763ebe895bc13ac6bfc49577756792d4..8e5cc58cdfdbbc2872679a8a853033ab97e91b27 100644 (file)
--- a/gst/gstclock.c
+++ b/gst/gstclock.c
/* #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
{
diff --git a/gst/gstelement.c b/gst/gstelement.c
index 0e57c77990e8275783073915102676a98d888dac..c2ca06e119b89c320001a8b60e91afd47a8597de 100644 (file)
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
}
/**
- * 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 56bb5c23d33beec756c1bd117bcf7f21d4439d4e..db5614c1622610dca0f75fc65fc49958dcd9c7ad 100644 (file)
--- a/gst/gstelementfactory.c
+++ b/gst/gstelementfactory.c
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
diff --git a/gst/gsterror.c b/gst/gsterror.c
index 7c50ec34878e1bfaa7dc8b62ea9227beeea0add5..bb3aa48236cf6e570f74b774e654ca6acaeab9aa 100644 (file)
--- a/gst/gsterror.c
+++ b/gst/gsterror.c
#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; }
diff --git a/gst/gstevent.c b/gst/gstevent.c
index 2f4dad8660830f301fdb6640ef77aa3040fad220..71af9051bf42dccd826dae9f2f2dea4476b85601 100644 (file)
--- a/gst/gstevent.c
+++ b/gst/gstevent.c
* // 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)
diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c
index 1e791b5c43b15e94a7a1f486f1e6c292e89e7dd2..056588eb1eff6c796c60aead9004dde3bb4ef9c9 100644 (file)
--- a/gst/gstghostpad.c
+++ b/gst/gstghostpad.c
#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
{
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index 30f479e081297c7df0be4965259233d09edc5f4b..f83831af76536727bcfc9e375e53feb5eaa1625f 100644 (file)
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
* 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>
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c
index b96688a2149dd400bf9e8c0b0517c1cd09d8dc84..9670a1c649045eac9b0864b54f78e58136084347 100644 (file)
--- a/gst/gstpadtemplate.c
+++ b/gst/gstpadtemplate.c
* <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 ]"
* )
diff --git a/gst/gstregistryxml.c b/gst/gstregistryxml.c
index 915e4bd1b618bb2e70686349295f0eeb7d2e8871..3d82423feceff45fdeef53e499d64c5f8cb23a28 100644 (file)
--- a/gst/gstregistryxml.c
+++ b/gst/gstregistryxml.c
/*
* 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
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index e57ed3150788066483f899205bdfc9a24607a8b3..303b7b37ab024c6d521c16e611e03a2922109ae5 100644 (file)
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
#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
{
* 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,
/***** 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 /**/
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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)
/**
* 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:
* 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
* 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:
* 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 *)
* 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,
* 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,
diff --git a/gst/gsttagsetter.c b/gst/gsttagsetter.c
index dbcb975294b897ad89c08cad24ee8491cf3b21fa..1ec0a3e64bb481d05f26faf98dda065ec4227dd9 100644 (file)
--- a/gst/gsttagsetter.c
+++ b/gst/gsttagsetter.c
* 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)
diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c
index edad5efc827c432fb792f52fd9735f33430cda77..4c6d07f08638130ab48b7f90b72156401246db73 100644 (file)
--- a/gst/gsttypefind.c
+++ b/gst/gsttypefind.c
* @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.
diff --git a/gst/gstvalue.c b/gst/gstvalue.c
index c1eff57983c54e66385d0495eb7f809771b582ee..23543b2482c663a099105ed2d57164a170eb3ae1 100644 (file)
--- a/gst/gstvalue.c
+++ b/gst/gstvalue.c
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.
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);
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 02111c37839db2537e1779de03ff1ae37b722d1b..44f19329d117513d279b472c4595e600c2daedb3 100644 (file)
#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
#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 4f24f9abd4763ec653d4892df0a36d8ba7794ef8..78bf15f4fbf5dd610701d099e3bf0416e14545a0 100644 (file)
#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 00e8094dfd3f05f195c1f3815ca4cacbdd3ab48a..cb029053fe61b80d5c1b1fd391135cfadb1ec18d 100644 (file)
#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 4cd481ffd79f65e2a2e83117ab1b0c0fe39a87e5..32fa8d11041fe408d0f1b15a5732a2c253f9e8cf 100644 (file)
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 f2c82e3c019acc22ae555fda7928a0dc210e5708..1c9c8f9f83a378ac36ce28147ba05115cc50cb72 100644 (file)
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 cebf81f2eae53b18b7e33c457d3afc4885ddd6f4..bceb233cf1a05e71644c21bdcdb0f138438e6856 100644 (file)
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 2e8a7a583d3ab0917a7a5b514befc269d62f93e0..7b580762a5f089cb6928ab2482ffb3569bf44b2a 100644 (file)
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 27235007a6e1bd5c290101a35c3b308a52198e14..91b071300e4fece16b403b4ff13401e1c1884503 100644 (file)
#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",
/* 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
#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 33bd983eb9a7acad697749473996e20758ad087c..13c5fac5dfe58e02d4a811906ea098f0d9d51b47 100644 (file)
#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 40a5d4ccb6d71f9a386ac240521a5284bc707255..52f704a630e2ac5500295ed751ba9ba1c5cac730 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))
/*
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:
{
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 367028f2117164ba2ca2881e77e01324d5f025dd..75590a9cd6b7dcae311c8387a2d0762aba20d469 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 1fab1df2eed8aed7130efd288dbcd8323b723c6a..ab32b48d75fa93056643201a3fb0029b4129b4a6 100644 (file)
--- a/tests/check/gst/gsttag.c
+++ b/tests/check/gst/gsttag.c
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;
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 aa98167935407b93ebe7af6608a56c350aa2dbfa..26e0c04c6e257833cf222c68aa2bf77f2c8e9f3c 100644 (file)
* 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 aebb0cb40688e37518a5110181de6d1469697623..0dd703a00d18faeca7d97187a0121b67a269afb5 100644 (file)
* 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>
/*#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 698ea67fbfcd54921e1526493e4788cf0db44d20..853634f399fe5b2ca3d3300f4a947dc625f08085 100644 (file)
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 0690574a8d053d7c183fd91f6b79b6d5fef239df..48dc8b25c1893054be088aa149ec5031b023b659 100644 (file)
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)
)
);
"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 f8fc02bed812afe7665238bc1d68513cc9a883fe..6d931a09fe8c5326bd7d9daa3df47610ea16a18e 100644 (file)
#include <gst/gst.h>
-#define THREAD_COUNT 5
-#define ITERATIONS 20
+#define THREAD_COUNT 5
+#define ITERATIONS 20
/* stupid logging functions */
static void
index 5a6c338642cae3914ad1006ae8e956ea6d98168e..d5b618a252b00d7567f6be805df959d5e03f8284 100644 (file)
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"
diff --git a/tools/gst-xmlinspect.c b/tools/gst-xmlinspect.c
index 1c677907d51eed01d53e302e82a6a5b08b24dcd3..04bfd26f67fd11e3eef1cafbe439789ec254baa1 100644 (file)
--- a/tools/gst-xmlinspect.c
+++ b/tools/gst-xmlinspect.c
#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
diff --git a/win32/common/dirent.c b/win32/common/dirent.c
index f730feaa0729d34c1b9ec22281ed3f9d2e63d004..77b7ec9e5bb96fc7934661a3ce47e3db6e33f79b 100644 (file)
--- a/win32/common/dirent.c
+++ b/win32/common/dirent.c
*\r
* Resource leaks fixed by <steve.lhomme@free.fr>\r
*\r
- * \r
+ * \r
* $Revision$\r
* $Author$\r
* $Date$\r
#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