rpms/gstreamer/devel .cvsignore, 1.44, 1.45 gstreamer-inspect-rpm-format.patch, 1.6, 1.7 gstreamer.spec, 1.106, 1.107 sources, 1.45, 1.46

Bastien Nocera hadess at fedoraproject.org
Mon Nov 30 15:35:08 UTC 2009


Author: hadess

Update of /cvs/pkgs/rpms/gstreamer/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28827

Modified Files:
	.cvsignore gstreamer-inspect-rpm-format.patch gstreamer.spec 
	sources 
Log Message:
* Mon Nov 30 2009 Bastien Nocera <bnocera at redhat.com> 0.10.25.1-2
- Update to snapshot



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gstreamer/devel/.cvsignore,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -p -r1.44 -r1.45
--- .cvsignore	5 Oct 2009 16:11:32 -0000	1.44
+++ .cvsignore	30 Nov 2009 15:35:07 -0000	1.45
@@ -1 +1 @@
-gstreamer-0.10.25.tar.bz2
+gstreamer-0.10.25.1-20091111.tar.bz2

gstreamer-inspect-rpm-format.patch:
 gst-inspect.c |  273 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 257 insertions(+), 16 deletions(-)

Index: gstreamer-inspect-rpm-format.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gstreamer/devel/gstreamer-inspect-rpm-format.patch,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- gstreamer-inspect-rpm-format.patch	16 Jul 2009 14:50:55 -0000	1.6
+++ gstreamer-inspect-rpm-format.patch	30 Nov 2009 15:35:07 -0000	1.7
@@ -1,102 +1,114 @@
+From 3f3f59c66d5eaf0efd32b8d6dabb7895cba5dda6 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Wed, 11 Nov 2009 13:53:46 +0000
+Subject: [PATCH] Add RPM provides output to gst-inspect
+
+---
+ tools/gst-inspect.c |  272 ++++++++++++++++++++++++++++++++++++++++++++++++---
+ 1 files changed, 257 insertions(+), 15 deletions(-)
+
 diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
-index a286ce8..7c4ac97 100644
+index b2502f4..dfd2eb4 100644
 --- a/tools/gst-inspect.c
 +++ b/tools/gst-inspect.c
-@@ -1270,9 +1270,219 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
+@@ -1308,9 +1308,225 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
    return 0;
  }
  
 +static void
-+print_gst_structure_append_field (GList *strings, const char *field)
++print_gst_structure_append_field (GList * strings, const char *field)
 +{
-+	GList *s;
++  GList *s;
 +
-+	//g_message ("adding '%s' to the string", field);
++  //g_message ("adding '%s' to the string", field);
 +
-+	for (s = strings; s != NULL; s = s->next) {
-+		g_string_append (s->data, field);
-+	}
++  for (s = strings; s != NULL; s = s->next) {
++    g_string_append (s->data, field);
++  }
 +}
-+
-+static void
-+print_gst_structure_append_field_index (GList *strings, const char *field, guint num_items, guint offset)
+ 
+ static void
+-print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
++print_gst_structure_append_field_index (GList * strings, const char *field,
++    guint num_items, guint offset)
 +{
-+	GList *s;
-+	guint i;
++  GList *s;
++  guint i;
 +
-+	//g_message ("adding '%s' to the string (num: %d offset: %d)", field, num_items, offset);
++  //g_message ("adding '%s' to the string (num: %d offset: %d)", field, num_items, offset);
 +
-+	for (s = strings, i = 0; s != NULL; s = s->next, i++) {
-+		if (i == offset) {
-+			//g_message ("adding '%s' at '%d'", field, i);
-+			g_string_append (s->data, field);
-+		}
-+		if (i == num_items)
-+			i = 0;
-+	}
++  for (s = strings, i = 0; s != NULL; s = s->next, i++) {
++    if (i == offset) {
++      //g_message ("adding '%s' at '%d'", field, i);
++      g_string_append (s->data, field);
++    }
++    if (i == num_items)
++      i = 0;
++  }
 +
 +}
 +
 +static GList *
-+print_gst_structure_dup_fields (GList *strings, guint num_items)
++print_gst_structure_dup_fields (GList * strings, guint num_items)
 +{
-+	guint new_items, i;
++  guint new_items, i;
 +
-+	if (num_items == 1)
-+		return strings;
++  if (num_items == 1)
++    return strings;
 +
-+	//g_message ("creating %d new items", num_items);
++  //g_message ("creating %d new items", num_items);
 +
-+	new_items = g_list_length (strings) * (num_items - 1);
-+	for (i = 0; i < new_items; i++) {
-+		GString *s, *first;
++  new_items = g_list_length (strings) * (num_items - 1);
++  for (i = 0; i < new_items; i++) {
++    GString *s, *first;
 +
-+		first = strings->data;
-+		s = g_string_new_len (first->str, first->len);
-+		strings = g_list_prepend (strings, s);
-+	}
++    first = strings->data;
++    s = g_string_new_len (first->str, first->len);
++    strings = g_list_prepend (strings, s);
++  }
 +
-+	return strings;
++  return strings;
 +}
 +
-+enum {
-+	FIELD_VERSION = 0,
-+	FIELD_LAYER,
-+	FIELD_VARIANT,
-+	FIELD_SYSTEMSTREAM
++enum
++{
++  FIELD_VERSION = 0,
++  FIELD_LAYER,
++  FIELD_VARIANT,
++  FIELD_SYSTEMSTREAM
 +};
 +
 +static int
 +field_get_type (const char *field_name)
 +{
-+	if (strstr (field_name, "version") != NULL)
-+		return FIELD_VERSION;
-+	if (strcmp (field_name, "layer") == 0)
-+		return FIELD_LAYER;
-+	if (strcmp (field_name, "systemstream") == 0)
-+		return FIELD_SYSTEMSTREAM;
-+	if (strcmp (field_name, "variant") == 0)
-+		return FIELD_VARIANT;
++  if (strstr (field_name, "version") != NULL)
++    return FIELD_VERSION;
++  if (strcmp (field_name, "layer") == 0)
++    return FIELD_LAYER;
++  if (strcmp (field_name, "systemstream") == 0)
++    return FIELD_SYSTEMSTREAM;
++  if (strcmp (field_name, "variant") == 0)
++    return FIELD_VARIANT;
 +
-+	return -1;
++  return -1;
 +}
 +
 +static gint
 +fields_type_compare (const char *a, const char *b)
 +{
-+	gint a_type, b_type;
++  gint a_type, b_type;
 +
-+	a_type = field_get_type (a);
-+	b_type = field_get_type (b);
-+	if (a_type < b_type)
-+		return -1;
-+	if (b_type < a_type)
-+		return 1;
-+	return 0;
++  a_type = field_get_type (a);
++  b_type = field_get_type (b);
++  if (a_type < b_type)
++    return -1;
++  if (b_type < a_type)
++    return 1;
++  return 0;
 +}
 +
 +static void
-+print_gst_structure_for_rpm (const char *type_name, GstStructure *s)
++print_gst_structure_for_rpm (const char *type_name, GstStructure * s)
 +{
 +  guint i, num_fields;
 +  const char *name;
@@ -113,11 +125,13 @@ index a286ce8..7c4ac97 100644
 +
 +    field_name = gst_structure_nth_field_name (s, i);
 +    if (field_get_type (field_name) < 0) {
-+    	//g_message ("ignoring field named %s", field_name);
-+    	continue;
++      //g_message ("ignoring field named %s", field_name);
++      continue;
 +    }
 +
-+    fields = g_list_insert_sorted (fields, g_strdup (field_name), (GCompareFunc) fields_type_compare);
++    fields =
++        g_list_insert_sorted (fields, g_strdup (field_name),
++        (GCompareFunc) fields_type_compare);
 +  }
 +
 +  /* Example:
@@ -170,7 +184,8 @@ index a286ce8..7c4ac97 100644
 +        char *field;
 +
 +        field = g_strdup_printf ("(%s=%d)", field_name, i);
-+        print_gst_structure_append_field_index (strings, field, max - min + 1, i - min);
++        print_gst_structure_append_field_index (strings, field, max - min + 1,
++            i - min);
 +        g_free (field);
 +      }
 +    } else if (type == GST_TYPE_LIST) {
@@ -186,9 +201,9 @@ index a286ce8..7c4ac97 100644
 +        char *field;
 +        const GValue *item_value;
 +
-+	item_value = gst_value_list_get_value (value, i);
++        item_value = gst_value_list_get_value (value, i);
 +        field = g_strdup_printf ("(%s=%d)", field_name,
-+        			 g_value_get_int (item_value));
++            g_value_get_int (item_value));
 +        print_gst_structure_append_field_index (strings, field, num_items, i);
 +        g_free (field);
 +      }
@@ -216,14 +231,14 @@ index a286ce8..7c4ac97 100644
 +  }
 +  g_list_free (strings);
 +}
- 
- static void
--print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
-+print_plugin_automatic_install_info_codecs (GstElementFactory * factory, gboolean rpm_format)
++
++static void
++print_plugin_automatic_install_info_codecs (GstElementFactory * factory,
++    gboolean rpm_format)
  {
    GstPadDirection direction;
    const gchar *type_name;
-@@ -1297,6 +1507,12 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
+@@ -1335,6 +1551,12 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
      return;
    }
  
@@ -236,7 +251,7 @@ index a286ce8..7c4ac97 100644
    /* decoder/demuxer sink pads should always be static and there should only
     * be one, the same applies to encoders/muxers and source pads */
    static_templates = gst_element_factory_get_static_pad_templates (factory);
-@@ -1333,15 +1549,19 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
+@@ -1371,15 +1593,20 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
      gst_structure_remove_field (s, "rate");
      gst_structure_remove_field (s, "depth");
      gst_structure_remove_field (s, "clock-rate");
@@ -256,11 +271,12 @@ index a286ce8..7c4ac97 100644
  
  static void
 -print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
-+print_plugin_automatic_install_info_protocols (GstElementFactory * factory, gboolean rpm_format)
++print_plugin_automatic_install_info_protocols (GstElementFactory * factory,
++    gboolean rpm_format)
  {
    gchar **protocols, **p;
  
-@@ -1350,11 +1570,17 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
+@@ -1388,11 +1615,17 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
      switch (gst_element_factory_get_uri_type (factory)) {
        case GST_URI_SINK:
          for (p = protocols; *p != NULL; ++p)
@@ -280,7 +296,7 @@ index a286ce8..7c4ac97 100644
          break;
        default:
          break;
-@@ -1364,7 +1590,7 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
+@@ -1402,7 +1635,7 @@ print_plugin_automatic_install_info_protocols (GstElementFactory * factory)
  }
  
  static void
@@ -289,7 +305,7 @@ index a286ce8..7c4ac97 100644
  {
    const gchar *plugin_name;
    GList *features, *l;
-@@ -1384,11 +1610,12 @@ print_plugin_automatic_install_info (GstPlugin * plugin)
+@@ -1422,11 +1655,12 @@ print_plugin_automatic_install_info (GstPlugin * plugin)
      if (g_str_equal (plugin_name, feature->plugin_name)) {
        GstElementFactory *factory;
  
@@ -305,25 +321,34 @@ index a286ce8..7c4ac97 100644
      }
    }
  
-@@ -1402,6 +1629,7 @@ main (int argc, char *argv[])
-   gboolean print_all = FALSE;
+@@ -1446,7 +1680,7 @@ print_all_plugin_automatic_install_info (void)
+     plugin = (GstPlugin *) (plugins->data);
+     plugins = g_list_next (plugins);
+ 
+-    print_plugin_automatic_install_info (plugin);
++    print_plugin_automatic_install_info (plugin, FALSE);
+   }
+   gst_plugin_list_free (orig_plugins);
+ }
+@@ -1458,6 +1692,7 @@ main (int argc, char *argv[])
+   gboolean do_print_blacklist = FALSE;
    gboolean plugin_name = FALSE;
    gboolean print_aii = FALSE;
 +  gboolean print_aii_rpm = FALSE;
    gboolean uri_handlers = FALSE;
  #ifndef GST_DISABLE_OPTION_PARSING
    GOptionEntry options[] = {
-@@ -1412,6 +1640,9 @@ main (int argc, char *argv[])
-               "provides.\n                                       "
+@@ -1470,6 +1705,9 @@ main (int argc, char *argv[])
+               "or all plugins provide.\n                                       "
                "Useful in connection with external automatic plugin "
                "installation mechanisms"), NULL},
 +    {"rpm", '\0', 0, G_OPTION_ARG_NONE, &print_aii_rpm,
-+       N_("Print the machine-parsable list of features of a plugin in RPM "
-+       	  "Provides compatible-format"), NULL},
++        N_("Print the machine-parsable list of features of a plugin in RPM "
++              "Provides compatible-format"), NULL},
      {"plugin", '\0', 0, G_OPTION_ARG_NONE, &plugin_name,
          N_("List the plugin contents"), NULL},
      {"uri-handlers", 'u', 0, G_OPTION_ARG_NONE, &uri_handlers,
-@@ -1492,7 +1723,7 @@ main (int argc, char *argv[])
+@@ -1557,7 +1795,7 @@ main (int argc, char *argv[])
        /* if there is such a plugin, print out info */
        if (plugin) {
          if (print_aii) {
@@ -332,7 +357,7 @@ index a286ce8..7c4ac97 100644
          } else {
            print_plugin_info (plugin);
            print_plugin_features (plugin);
-@@ -1505,13 +1736,16 @@ main (int argc, char *argv[])
+@@ -1570,13 +1808,17 @@ main (int argc, char *argv[])
  
            if (plugin) {
              if (print_aii) {
@@ -346,8 +371,12 @@ index a286ce8..7c4ac97 100644
 -            g_print (_("Could not load plugin file: %s\n"), error->message);
 +            if (!print_aii_rpm)
 +              g_print (_("Could not load plugin file: %s\n"), error->message);
-+	    else
-+              g_printerr (_("Could not load plugin file: %s\n"), error->message);
++            else
++              g_printerr (_("Could not load plugin file: %s\n"),
++                  error->message);
              g_error_free (error);
              return -1;
            }
+-- 
+1.6.5.2
+


Index: gstreamer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gstreamer/devel/gstreamer.spec,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -p -r1.106 -r1.107
--- gstreamer.spec	5 Oct 2009 16:11:32 -0000	1.106
+++ gstreamer.spec	30 Nov 2009 15:35:07 -0000	1.107
@@ -5,14 +5,22 @@
 %define 	_libxml2	2.4.0
 
 Name: 		%{gstreamer}
-Version: 	0.10.25
-Release: 	1%{?dist}
+Version: 	0.10.25.1
+Release: 	2%{?dist}
 Summary: 	GStreamer streaming media framework runtime
 
 Group: 		Applications/Multimedia
 License: 	LGPLv2+
 URL:		http://gstreamer.freedesktop.org/
-Source: 	http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.bz2
+# Tarfile created using git
+# git clone git://anongit.freedesktop.org/gstreamer/gstreamer
+# git reset --hard %{gitversion}
+# ./autogen.sh --enable-gtk-doc && make all dist
+# mv gstreamer-%{version}.tar.gz gstreamer-%{version}-%{gitdate}.tar.gz
+#Source: 	http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.bz2
+%define gitdate 20091111
+%define git_version 039ef83
+Source:		gstreamer-%{version}-%{gitdate}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires:	gstreamer-tools >= %{version}
@@ -36,6 +44,8 @@ BuildRequires:	gcc-c++
 Patch1:		gstreamer-inspect-rpm-format.patch
 Source1:	gstreamer.prov
 Source2:	macros.gstreamer
+# https://bugzilla.gnome.org/show_bug.cgi?id=595958
+Patch2:		0001-basesink-fix-position-reporting.patch
 
 ### documentation requirements
 BuildRequires:  python2
@@ -102,6 +112,7 @@ with different major/minor versions of G
 %setup -q -n gstreamer-%{version}
 
 %patch1 -p1 -b .rpm-provides
+%patch2 -p1 -b .stepping-position
 
 %build
 # 0.10.0: manuals do not build due to an openjade error; disable for now
@@ -148,6 +159,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstcontroller-%{majorminor}.so.*
 %{_libdir}/libgstdataprotocol-%{majorminor}.so.*
 %{_libdir}/libgstnet-%{majorminor}.so.*
+%{_libexecdir}/plugin-scanner
 
 %dir %{_libdir}/gstreamer-%{majorminor}
 %{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so
@@ -211,6 +223,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/rpm/macros.gstreamer
 
 %changelog
+* Mon Nov 30 2009 Bastien Nocera <bnocera at redhat.com> 0.10.25.1-2
+- Update to snapshot
+
 * Mon Oct 05 2009 Bastien Nocera <bnocera at redhat.com> 0.10.25-1
 - Update to 0.10.25
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gstreamer/devel/sources,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -p -r1.45 -r1.46
--- sources	5 Oct 2009 16:11:32 -0000	1.45
+++ sources	30 Nov 2009 15:35:07 -0000	1.46
@@ -1 +1 @@
-88544e034a051baf472983791d233076  gstreamer-0.10.25.tar.bz2
+ee4bf708d8fffad9635b719cad0b769b  gstreamer-0.10.25.1-20091111.tar.bz2




More information about the fedora-extras-commits mailing list