+2007-01-29 Stefan Kost <ensonic@users.sf.net>
+
+ * configure.ac:
+ comment about refining the xml deps
+
+ * docs/manuals.mak:
+ comments about moving away from jade for docs
+
+ * gst/gst.c:
+ recommit the ifdefs to use the binary registry
+
+ * gst/gstbin.c: (gst_bin_change_state_func):
+ this break is obsolete
+
+ * gst/gstelementfactory.h:
+ better GST_ELEMENT_DETAILS docs, add comment about translation
+
+ * gst/gstinfo.h:
+ remove eol slash
+
+ * gst/gstobject.c: (gst_signal_object_get_type):
+ add G_UNLIKELY as usual
+
+ * gst/gstpad.c: (gst_pad_event_default):
+ add fall trhu comment
+
+ * gst/gstregistrybinary.c: (gst_registry_binary_write),
+ (gst_registry_binary_initialize_magic),
+ (gst_registry_binary_save_string),
+ (gst_registry_binary_save_pad_template),
+ (gst_registry_binary_save_feature),
+ (gst_registry_binary_save_plugin),
+ (gst_registry_binary_write_cache),
+ (gst_registry_binary_check_magic),
+ (gst_registry_binary_load_pad_template),
+ (gst_registry_binary_load_feature),
+ (gst_registry_binary_load_plugin),
+ (gst_registry_binary_read_cache):
+ comment typo and formatting
+
+ * gst/gstutils.c: (gst_element_state_get_name),
+ (gst_element_state_change_return_get_name):
+ remove obsolete breaks
+
+ * gst/gstvalue.c: (gst_date_get_type), (_gst_value_initialize):
+ add FIXME 0.11 and remove cpp comment
+
2007-01-29 Edward Hervey <edward@fluendo.com>
* gst/gstregistrybinary.c: (gst_registry_binary_read_cache):
PKG_CHECK_MODULES(GLIB_ONLY, glib-2.0 >= $GLIB_REQ)
dnl libxml 2, which is/should be optional (FIXME)
+dnl (FIXME) if we use binary registry, the DISABLE_REGISTRY check need to go
if test "x$GST_DISABLE_LOADSAVE" = "xyes" && \
test "x$GST_DISABLE_REGISTRY" = "xyes"
then
@cp ../version.entities $(BUILDDIR)
@cp $(top_srcdir)/docs/url.entities $(BUILDDIR)
+# we should switch to xsltproc
+# docbook2html aka jade can't add the encoding easily to the html meta
+# jw -f docbook -b html -d pwg.dsl -o ../html -V '%use-id-as-filename%' $(MAIN)
+# this is a startng point
+# xsltproc --nonet /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl pwg.xml
+#
html/index.html: $(BUILDDIR)/$(MAIN) $(PNG_BUILT) $(FIG_SRC)
@make check-local
@echo "*** Generating HTML output ***"
GList *l;
GST_DEBUG ("reading registry cache: %s", registry_file);
+#ifdef USE_BINARY_REGISTRY
+ gst_registry_binary_read_cache (default_registry, registry_file);
+#else
gst_registry_xml_read_cache (default_registry, registry_file);
-
+#endif
/* scan paths specified via --gst-plugin-path */
GST_DEBUG ("scanning paths added via --gst-plugin-path");
for (l = plugin_paths; l != NULL; l = l->next) {
}
GST_INFO ("Registry cache changed. Writing new registry cache");
+#ifdef USE_BINARY_REGISTRY
+ if (!gst_registry_binary_write_cache (default_registry, registry_file)) {
+#else
if (!gst_registry_xml_write_cache (default_registry, registry_file)) {
+#endif
g_set_error (error, GST_CORE_ERROR, GST_CORE_ERROR_FAILED,
_("Error writing registry cache to %s: %s"),
registry_file, g_strerror (errno));
if (res_byte == '1') {
GST_DEBUG ("Child succeeded. Parent reading registry cache");
+#ifdef USE_BINARY_REGISTRY
+ gst_registry_binary_read_cache (default_registry, registry_file);
+#else
gst_registry_xml_read_cache (default_registry, registry_file);
+#endif
} else {
GST_DEBUG ("Child failed. Parent re-scanning registry, ignoring errors.");
scan_and_update_registry (default_registry, registry_file, FALSE, NULL);
default_registry = gst_registry_get_default ();
registry_file = g_strdup (g_getenv ("GST_REGISTRY"));
if (registry_file == NULL) {
+#ifdef USE_BINARY_REGISTRY
+ registry_file = g_build_filename (g_get_home_dir (),
+ ".gstreamer-" GST_MAJORMINOR, "registry." HOST_CPU ".bin", NULL);
+#else
registry_file = g_build_filename (g_get_home_dir (),
".gstreamer-" GST_MAJORMINOR, "registry." HOST_CPU ".xml", NULL);
+#endif
}
/* first see if forking is enabled */
return strcmp (gst_debug_category_get_name ((GstDebugCategory *) a),
gst_debug_category_get_name ((GstDebugCategory *) b));
}
+
static void
gst_debug_help (void)
{
GST_CAT_DEBUG (GST_CAT_STATES, "iterator doing resync");
gst_iterator_resync (it);
goto restart;
- break;
default:
case GST_ITERATOR_DONE:
GST_CAT_DEBUG (GST_CAT_STATES, "iterator done");
* The @klass member can be used by applications to filter elements based
* on functionality.
*/
-/* FIXME: need translatable stuff in here (how handle in registry)? */
+/* FIXME: need translatable stuff in here (how handle in registry)?
+ * can't we use _N("long name") in element implementations and use _(longname)
+ * in gst_element_factory_get_longname()
+ */
struct _GstElementDetails
{
/*< public > */
/**
* GST_ELEMENT_DETAILS:
* @longname: long, english name
- * @klass: type of element, as hierarchy
+ * @klass: type of element, as hierarchy with '/' as a delimiter
* @description: what the element is about
- * @author: who wrote this thing?
+ * @author: who wrote this element
*
* Macro to initialize #GstElementDetails.
*/
GST_CAT_LEVEL_LOG (GstDebugCategory * cat, GstDebugLevel level,
gpointer object, const char *format, ...)
{
- if (G_UNLIKELY (level <= __gst_debug_min)) { \
+ if (G_UNLIKELY (level <= __gst_debug_min)) {
va_list varargs;
va_start (varargs, format);
{
static GType signal_object_type = 0;
- if (!signal_object_type) {
+ if (G_UNLIKELY (signal_object_type == 0)) {
static const GTypeInfo signal_object_info = {
sizeof (GstSignalObjectClass),
NULL,
GST_DEBUG_OBJECT (pad, "pausing task because of eos");
gst_pad_pause_task (pad);
}
+ /* fall thru */
default:
break;
}
/* GStreamer
- * Copyright (C) 2006 Josep Torra <josep@fluendo.com>
- * 2006 Mathieu Garcia <matthieu@fluendo.com>
- * 2006 Stefan Kost <ensonic@sonicpulse.de>
- *
+ * Copyright (C) 2006 Josep Torra <josep@fluendo.com>
+ * 2006 Mathieu Garcia <matthieu@fluendo.com>
+ * 2006,2007 Stefan Kost <ensonic@users.sf.net>
+ *
* gstregistrybinary.c: GstRegistryBinary object, support routines
*
* This library is free software; you can redistribute it and/or
* (need const flags in GstPlugin, etc.)
* - why do we collect a list of binary chunks and not write immediately
* - because we need to process subchunks, before we can set e.g. nr_of_items
- * in parnt chunk
+ * in parent chunk
* - need more robustness
* - don't parse beyond mem-block size
* - include md5-sum ?
#ifdef GST_DEBUG_COLOR
case GST_STATE_VOID_PENDING:
return "VOID_PENDING";
- break;
case GST_STATE_NULL:
return "\033[01;34mNULL\033[00m";
- break;
case GST_STATE_READY:
return "\033[01;31mREADY\033[00m";
- break;
case GST_STATE_PLAYING:
return "\033[01;32mPLAYING\033[00m";
- break;
case GST_STATE_PAUSED:
return "\033[01;33mPAUSED\033[00m";
- break;
default:
/* This is a memory leak */
return g_strdup_printf ("\033[01;35;41mUNKNOWN!\033[00m(%d)", state);
#else
case GST_STATE_VOID_PENDING:
return "VOID_PENDING";
- break;
case GST_STATE_NULL:
return "NULL";
- break;
case GST_STATE_READY:
return "READY";
- break;
case GST_STATE_PLAYING:
return "PLAYING";
- break;
case GST_STATE_PAUSED:
return "PAUSED";
- break;
default:
/* This is a memory leak */
return g_strdup_printf ("UNKNOWN!(%d)", state);
#ifdef GST_DEBUG_COLOR
case GST_STATE_CHANGE_FAILURE:
return "\033[01;31mFAILURE\033[00m";
- break;
case GST_STATE_CHANGE_SUCCESS:
return "\033[01;32mSUCCESS\033[00m";
- break;
case GST_STATE_CHANGE_ASYNC:
return "\033[01;33mASYNC\033[00m";
- break;
case GST_STATE_CHANGE_NO_PREROLL:
return "\033[01;34mNO PREROLL\033[00m";
- break;
default:
/* This is a memory leak */
return g_strdup_printf ("\033[01;35;41mUNKNOWN!\033[00m(%d)", state_ret);
#else
case GST_STATE_CHANGE_FAILURE:
return "FAILURE";
- break;
case GST_STATE_CHANGE_SUCCESS:
return "SUCCESS";
- break;
case GST_STATE_CHANGE_ASYNC:
return "ASYNC";
- break;
case GST_STATE_CHANGE_NO_PREROLL:
return "NO PREROLL";
- break;
default:
/* This is a memory leak */
return g_strdup_printf ("UNKNOWN!(%d)", state_ret);
static GType gst_date_type = 0;
if (G_UNLIKELY (gst_date_type == 0)) {
- /* Not using G_TYPE_DATE here on purpose, even if we could
+ /* FIXME 0.11: we require GLib 2.8 already
+ * Not using G_TYPE_DATE here on purpose, even if we could
* if GLIB_CHECK_VERSION(2,8,0) was true: we don't want the
* serialised strings to have different type strings depending
- * on what version is used, so FIXME when we
- * require GLib-2.8 */
+ * on what version is used, so FIXME when we require GLib-2.8 */
gst_date_type = g_boxed_type_register_static ("GstDate",
(GBoxedCopyFunc) gst_date_copy, (GBoxedFreeFunc) g_date_free);
}
void
_gst_value_initialize (void)
{
- //const GTypeFundamentalInfo finfo = { G_TYPE_FLAG_DERIVABLE, };
-
gst_value_table = g_array_new (FALSE, FALSE, sizeof (GstValueTable));
gst_value_union_funcs = g_array_new (FALSE, FALSE,
sizeof (GstValueUnionInfo));