gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r23252 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r23252 - Extractor/src/plugins
Date: Thu, 16 Aug 2012 09:25:17 +0200

Author: LRN
Date: 2012-08-16 09:25:17 +0200 (Thu, 16 Aug 2012)
New Revision: 23252

Modified:
   Extractor/src/plugins/gstreamer_extractor.c
Log:
Also serialize fractions

Modified: Extractor/src/plugins/gstreamer_extractor.c
===================================================================
--- Extractor/src/plugins/gstreamer_extractor.c 2012-08-16 07:20:55 UTC (rev 
23251)
+++ Extractor/src/plugins/gstreamer_extractor.c 2012-08-16 07:25:17 UTC (rev 
23252)
@@ -849,6 +849,7 @@
   gchar *str;
   const gchar *field_name = g_quark_to_string (field_id);
   const gchar *type_name = g_type_name (G_VALUE_TYPE (value));
+  GType gst_fraction = GST_TYPE_FRACTION;
 
   /* TODO: check a list of known quarks, use specific EXTRACTOR_MetaType  */
   switch (G_VALUE_TYPE (value))
@@ -863,6 +864,11 @@
     str = gst_value_serialize (value);
     break;
   default:
+    if (G_VALUE_TYPE (value) == gst_fraction)
+    {
+      str = gst_value_serialize (value);
+      break;
+    }
     /* This is a potential source of invalid characters */
     /* And it also might attempt to serialize binary data - such as images. */
     str = NULL;
@@ -1331,6 +1337,7 @@
   GValue val = { 0, };
   gchar *topen, *str, *tclose;
   const gchar *type_name;
+  GType gst_fraction = GST_TYPE_FRACTION;
 
   gst_tag_list_copy_value (&val, tags, tag);
 
@@ -1347,6 +1354,11 @@
     str = gst_value_serialize (&val);
     break;
   default:
+    if (G_VALUE_TYPE (&val) == gst_fraction)
+    {
+      str = gst_value_serialize (&val);
+      break;
+    }
     /* This is a potential source of invalid characters */
     /* And it also might attempt to serialize binary data - such as images. */
     str = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]