+2004-01-30 Laurent Vivier <Laurent.Vivier@bull.net>
+
+ reviewed by Benjamin Otte
+ parts of the patch submitted in bug #113913
+
+ * configure.ac:
+ use AC_C_INLINE. Use = instead of == with test
+ * examples/plugins/example.c:
+ * gst/autoplug/gstspideridentity.c:
+ * gst/elements/gstfdsrc.c:
+ * gst/elements/gstfilesrc.c:
+ * gst/elements/gstidentity.c:
+ * gst/elements/gstmultidisksrc.c:
+ * gst/elements/gststatistics.c:
+ * gst/gstelement.c:
+ * gst/gstobject.c:
+ * gst/gstpad.c:
+ * gst/gstpipeline.c:
+ * gst/gstthread.c:
+ don't end enums with a comma
+ * gst/gstindex.c: (gst_index_compare_func):
+ do explicit casting to gint
+ * gst/gsttrace.c: (gst_trace_text_flush):
+ #define strsize as a macro
+
2004-01-30 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/README:
dnl AM_DISABLE_STATIC
AC_HEADER_STDC([])
+AC_C_INLINE
dnl define correct errorlevel for debugging messages. We want to have GST_ERROR
dnl messages printed when running cvs builds
dnl check for makecontext and define HAVE_MAKECONTEXT if we have it
AC_CHECK_MCSC()
-if test "$ac_cv_check_mcsc" == "yes"; then
+if test "$ac_cv_check_mcsc" = "yes"; then
AC_DEFINE_UNQUOTED(HAVE_MAKECONTEXT, $HAVE_MAKECONTEXT,
[defined if we have makecontext ()])
fi
</para>
+<!-- ##### SIGNAL GstBin::element-added ##### -->
+<para>
+
+</para>
+
+@gstbin: the object which received the signal.
+@arg1: the element that was added to the bin
+
+<!-- ##### SIGNAL GstBin::element-removed ##### -->
+<para>
+
+</para>
+
+@gstbin: the object which received the signal.
+@arg1: the element that was removed from the bin
+
+<!-- ##### SIGNAL GstBin::iterate ##### -->
+<para>
+This signal is emitted when a bin iterates, either automatically or
+due to a #gst_bin_iterate() call. The return value is used to
+determine if the object method handler processed any data.
+In most normal cases, a user-provided signal handler should return
+FALSE.
+</para>
+
+@gstbin: the object which received the signal.
+@Returns: TRUE if the state of the bin was advanced.
+
<!-- ##### USER_FUNCTION GstBinPrePostIterateFunction ##### -->
<para>
The signature of the callback for the post and pre iterate function as set with
@clock:
-<!-- ##### SIGNAL GstBin::element-added ##### -->
-<para>
-
-</para>
-
-@gstbin: the object which received the signal.
-@arg1: the element that was added to the bin
-
-<!-- ##### SIGNAL GstBin::element-removed ##### -->
-<para>
-
-</para>
-
-@gstbin: the object which received the signal.
-@arg1: the element that was removed from the bin
-
-<!-- ##### SIGNAL GstBin::iterate ##### -->
-<para>
-This signal is emitted when a bin iterates, either automatically or
-due to a #gst_bin_iterate() call. The return value is used to
-determine if the object method handler processed any data.
-In most normal cases, a user-provided signal handler should return
-FALSE.
-</para>
-
-@gstbin: the object which received the signal.
-@Returns: TRUE if the state of the bin was advanced.
-
</para>
+<!-- ##### ARG GstClock:event-diff ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG GstClock:max-diff ##### -->
+<para>
+Maximum allowed diff for clock sync requests against the real time.
+</para>
+
+<!-- ##### ARG GstClock:stats ##### -->
+<para>
+Boolean property to activate stat generation on the clock.
+</para>
+
<!-- ##### FUNCTION gst_clock_set_speed ##### -->
<para>
@id:
-<!-- ##### ARG GstClock:event-diff ##### -->
-<para>
-
-</para>
-
-<!-- ##### ARG GstClock:max-diff ##### -->
-<para>
-Maximum allowed diff for clock sync requests against the real time.
-</para>
-
-<!-- ##### ARG GstClock:stats ##### -->
-<para>
-Boolean property to activate stat generation on the clock.
-</para>
-
</para>
+<!-- ##### SIGNAL GstElement::eos ##### -->
+<para>
+Signal emited when the element goes to PAUSED due to an end-of-stream
+condition.
+</para>
+
+@gstelement: the object which received the signal.
+
+<!-- ##### SIGNAL GstElement::error ##### -->
+<para>
+Is triggered whenever an error occured.
+
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the error message
+@arg2:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+@:
+
+<!-- ##### SIGNAL GstElement::found-tag ##### -->
+<para>
+
+</para>
+
+@gstelement: the object which received the signal.
+@arg1:
+@arg2:
+
+<!-- ##### SIGNAL GstElement::new-pad ##### -->
+<para>
+Is triggered whenever a new pad is added to an element.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the new pad that was added
+
+<!-- ##### SIGNAL GstElement::pad-removed ##### -->
+<para>
+Is triggered whenever a pad has been removed from the element.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: The pad that was removed.
+
+<!-- ##### SIGNAL GstElement::state-change ##### -->
+<para>
+Is triggered whenever the state of an element changes.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the new state of the object
+@arg2:
+
<!-- ##### MACRO gst_element_get_name ##### -->
<para>
Gets the name of the element.
@...: list of query types.
-<!-- ##### SIGNAL GstElement::eos ##### -->
-<para>
-Signal emited when the element goes to PAUSED due to an end-of-stream
-condition.
-</para>
-
-@gstelement: the object which received the signal.
-
-<!-- ##### SIGNAL GstElement::error ##### -->
-<para>
-Is triggered whenever an error occured.
-
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the error message
-@arg2:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-@:
-
-<!-- ##### SIGNAL GstElement::found-tag ##### -->
-<para>
-
-</para>
-
-@gstelement: the object which received the signal.
-@arg1:
-@arg2:
-
-<!-- ##### SIGNAL GstElement::new-pad ##### -->
-<para>
-Is triggered whenever a new pad is added to an element.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the new pad that was added
-
-<!-- ##### SIGNAL GstElement::pad-removed ##### -->
-<para>
-Is triggered whenever a pad has been removed from the element.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: The pad that was removed.
-
-<!-- ##### SIGNAL GstElement::state-change ##### -->
-<para>
-Is triggered whenever the state of an element changes.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the new state of the object
-@arg2:
-
</para>
+<!-- ##### SIGNAL GstIndex::entry-added ##### -->
+<para>
+Is emited when a new entry is added to the index.
+</para>
+
+@gstindex: the object which received the signal.
+@arg1: The entry added to the index.
+
+<!-- ##### ARG GstIndex:resolver ##### -->
+<para>
+
+</para>
+
<!-- ##### FUNCTION gst_index_new ##### -->
<para>
@id:
-<!-- ##### SIGNAL GstIndex::entry-added ##### -->
-<para>
-Is emited when a new entry is added to the index.
-</para>
-
-@gstindex: the object which received the signal.
-@arg1: The entry added to the index.
-
-<!-- ##### ARG GstIndex:resolver ##### -->
-<para>
-
-</para>
-
</para>
+<!-- ##### SIGNAL GstObject::deep-notify ##### -->
+<para>
+The deep notify signal is used to be notified of property changes.
+it is typically attached to the toplevel bin to receive notifications
+from all the elements contained in that bin.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the object that originated the signal
+@arg2: the property that changed
+
+<!-- ##### SIGNAL GstObject::object-saved ##### -->
+<para>
+Is trigered whenever a new object is saved to XML. You can connect to
+this signal to insert custom XML tags into the core XML.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the xmlNodePtr of the parent node
+
+<!-- ##### SIGNAL GstObject::parent-set ##### -->
+<para>
+Is emitted when the parent of an object is set.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the new parent
+
+<!-- ##### SIGNAL GstObject::parent-unset ##### -->
+<para>
+Is emitted when the parent of an object is unset.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the old parent
+
+<!-- ##### ARG GstObject:name ##### -->
+<para>
+The name of the object
+</para>
+
<!-- ##### MACRO GST_FLAGS ##### -->
<para>
This macro returns the entire set of flags for the object.
@Returns:
-<!-- ##### SIGNAL GstObject::deep-notify ##### -->
-<para>
-The deep notify signal is used to be notified of property changes.
-it is typically attached to the toplevel bin to receive notifications
-from all the elements contained in that bin.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the object that originated the signal
-@arg2: the property that changed
-
-<!-- ##### SIGNAL GstObject::object-saved ##### -->
-<para>
-Is trigered whenever a new object is saved to XML. You can connect to
-this signal to insert custom XML tags into the core XML.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the xmlNodePtr of the parent node
-
-<!-- ##### SIGNAL GstObject::parent-set ##### -->
-<para>
-Is emitted when the parent of an object is set.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the new parent
-
-<!-- ##### SIGNAL GstObject::parent-unset ##### -->
-<para>
-Is emitted when the parent of an object is unset.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the old parent
-
-<!-- ##### ARG GstObject:name ##### -->
-<para>
-The name of the object
-</para>
-
</para>
+<!-- ##### SIGNAL GstPadTemplate::pad-created ##### -->
+<para>
+This signal is fired when an element creates a pad from this
+template.
+</para>
+
+@gstpadtemplate: the object which received the signal.
+@arg1: The pad that was created.
+
<!-- ##### ENUM GstPadTemplateFlags ##### -->
<para>
Flags for the padtemplate
@Returns:
-<!-- ##### SIGNAL GstPadTemplate::pad-created ##### -->
-<para>
-This signal is fired when an element creates a pad from this
-template.
-</para>
-
-@gstpadtemplate: the object which received the signal.
-@arg1: The pad that was created.
-
</para>
+<!-- ##### SIGNAL GstXML::object-loaded ##### -->
+<para>
+
+</para>
+
+@gstxml: the object which received the signal.
+@arg1:
+@arg2:
+
<!-- ##### USER_FUNCTION GstXMLRegistryAddPathList ##### -->
<para>
</para>
-<!-- ##### FUNCTION gst_thread_new ##### -->
-<para>
-
-</para>
-
-@name:
-@Returns:
-
-
<!-- ##### SIGNAL GstThread::shutdown ##### -->
<para>
The thread priority
</para>
+<!-- ##### FUNCTION gst_thread_new ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
+
@Returns:
-<!-- ##### SIGNAL GstXML::object-loaded ##### -->
-<para>
-
-</para>
-
-@:
-@:
-@:
-
-@gstxml: the object which received the signal.
-@arg1:
-@arg2:
-
-<!-- ##### SIGNAL GstXML::object-loaded ##### -->
-<para>
-
-</para>
-
-@gstxml: the object which received the signal.
-@arg1:
-@arg2:
-
*/
enum {
ARG_0,
- ARG_ACTIVE,
+ ARG_ACTIVE
/* FILL ME */
};
};
enum {
- ARG_0,
+ ARG_0
/* FILL ME */
};
enum {
ARG_0,
ARG_FD,
- ARG_BLOCKSIZE,
+ ARG_BLOCKSIZE
};
#define _do_init(bla) \
ARG_FD,
ARG_BLOCKSIZE,
ARG_MMAPSIZE,
- ARG_TOUCH,
+ ARG_TOUCH
};
GST_PAD_EVENT_MASK_FUNCTION (gst_filesrc_get_event_mask,
ARG_DROP_PROBABILITY,
ARG_SILENT,
ARG_LAST_MESSAGE,
- ARG_DUMP,
+ ARG_DUMP
};
enum {
ARG_0,
- ARG_LOCATIONS,
+ ARG_LOCATIONS
};
#define _do_init(bla) \
enum {
ARG_0,
- ARG_LOCATIONS,
+ ARG_LOCATIONS
};
#define _do_init(bla) \
ARG_EVENT_UPDATE_FREQ,
ARG_UPDATE_ON_EOS,
ARG_UPDATE,
- ARG_SILENT,
+ ARG_SILENT
};
};
enum {
- ARG_0,
+ ARG_0
/* FILL ME */
};
enum {
ARG_0,
- ARG_RESOLVER,
+ ARG_RESOLVER
/* FILL ME */
};
gconstpointer b,
gpointer user_data)
{
- return a - b;
+ return (gint)a - (gint)b;
}
/**
enum {
ARG_0,
- ARG_NAME,
+ ARG_NAME
/* FILL ME */
};
enum {
REAL_ARG_0,
REAL_ARG_CAPS,
- REAL_ARG_ACTIVE,
+ REAL_ARG_ACTIVE
/* FILL ME */
};
};
enum {
- ARG_0,
+ ARG_0
/* FILL ME */
};
enum {
ARG_0,
- ARG_PRIORITY,
+ ARG_PRIORITY
};
gst_trace_text_flush (GstTrace * trace)
{
int i;
- const int strsize = 20 + 1 + 10 + 1 + 10 + 1 + 112 + 1 + 1;
- char str[strsize];
+#define STRSIZE (20 + 1 + 10 + 1 + 10 + 1 + 112 + 1 + 1)
+ char str[STRSIZE];
if (!trace) {
trace = _gst_trace_default;
}
for (i = 0; i < trace->bufoffset; i++) {
- snprintf (str, strsize, "%20" G_GINT64_FORMAT " %10d %10d %s\n",
+ snprintf (str, STRSIZE, "%20" G_GINT64_FORMAT " %10d %10d %s\n",
trace->buf[i].timestamp,
trace->buf[i].sequence, trace->buf[i].data, trace->buf[i].message);
write (trace->fd, str, strlen (str));
}
trace->bufoffset = 0;
+#undef STRSIZE
}
void
enum {
ARG_0,
ARG_FD,
- ARG_BLOCKSIZE,
+ ARG_BLOCKSIZE
};
#define _do_init(bla) \
ARG_FD,
ARG_BLOCKSIZE,
ARG_MMAPSIZE,
- ARG_TOUCH,
+ ARG_TOUCH
};
GST_PAD_EVENT_MASK_FUNCTION (gst_filesrc_get_event_mask,
ARG_DROP_PROBABILITY,
ARG_SILENT,
ARG_LAST_MESSAGE,
- ARG_DUMP,
+ ARG_DUMP
};
enum {
ARG_0,
- ARG_LOCATIONS,
+ ARG_LOCATIONS
};
#define _do_init(bla) \
enum {
ARG_0,
- ARG_LOCATIONS,
+ ARG_LOCATIONS
};
#define _do_init(bla) \
ARG_EVENT_UPDATE_FREQ,
ARG_UPDATE_ON_EOS,
ARG_UPDATE,
- ARG_SILENT,
+ ARG_SILENT
};
*/
enum {
ARG_0,
- ARG_ACTIVE,
+ ARG_ACTIVE
/* FILL ME */
};