[rhythmbox] media-types: add some missing annotations



commit c7315e3267503db9fbb2c0816d9ea7d1ad8c3469
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Jun 19 18:15:46 2016 +1000

    media-types: add some missing annotations

 lib/rb-gst-media-types.c               |   23 +++++++++++++++++++++++
 podcast/rb-podcast-properties-dialog.c |   20 ++++++++++++++++++--
 2 files changed, 41 insertions(+), 2 deletions(-)
---
diff --git a/lib/rb-gst-media-types.c b/lib/rb-gst-media-types.c
index 89aeda3..3e00554 100644
--- a/lib/rb-gst-media-types.c
+++ b/lib/rb-gst-media-types.c
@@ -274,6 +274,11 @@ get_encoding_target_file ()
        return target_file;
 }
 
+/**
+ * rb_gst_get_default_encoding_target:
+ *
+ * Return value: (transfer none): default encoding target
+ */
 GstEncodingTarget *
 rb_gst_get_default_encoding_target ()
 {
@@ -295,6 +300,12 @@ rb_gst_get_default_encoding_target ()
        return default_target;
 }
 
+/**
+ * rb_gst_get_encoding_profile:
+ * @media_type: media type to get a profile for
+ *
+ * Return value: (transfer full): encoding profile
+ */
 GstEncodingProfile *
 rb_gst_get_encoding_profile (const char *media_type)
 {
@@ -458,6 +469,12 @@ rb_gst_encoding_profile_get_settings (GstEncodingProfile *profile, const char *s
        return setting_names;
 }
 
+/**
+ * rb_gst_encoding_profile_get_encoder:
+ * @profile: a #GstEncodingProfile
+ *
+ * Return value: (transfer full): an encoder element instance
+ */
 GstElement *
 rb_gst_encoding_profile_get_encoder (GstEncodingProfile *profile)
 {
@@ -471,6 +488,12 @@ rb_gst_encoding_profile_get_encoder (GstEncodingProfile *profile)
        return gst_element_factory_create (factory, NULL);
 }
 
+/**
+ * rb_gst_encoding_profile_get_presets:
+ * @profile: profile to return presets for
+ *
+ * Return value: (transfer full) (array zero-terminated=1) (element-type gchar *): preset names
+ */
 char **
 rb_gst_encoding_profile_get_presets (GstEncodingProfile *profile)
 {
diff --git a/podcast/rb-podcast-properties-dialog.c b/podcast/rb-podcast-properties-dialog.c
index 22d3085..7361538 100644
--- a/podcast/rb-podcast-properties-dialog.c
+++ b/podcast/rb-podcast-properties-dialog.c
@@ -183,12 +183,28 @@ unhtml (const char *str)
                                        *o++ = '&';
                                } else if (strncmp (entity, "lt", sizeof(entity)) == 0) {
                                        *o++ = '<';
+                               } else if (strncmp (entity, "gt", sizeof(entity)) == 0) {
+                                       *o++ = '>';
                                } else if (strncmp (entity, "quot", sizeof(entity)) == 0) {
                                        *o++ = '"';
-                               } else if (strncmp (entity, "apos", sizeof(entity)) == 0) {
-                                       *o++ = '\'';
                                } else if (strncmp (entity, "nbsp", sizeof(entity)) == 0) {
                                        *o++ = ' ';
+                               } else if (strncmp (entity, "lrm", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x200e, o);
+                               } else if (strncmp (entity, "rlm", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x200f, o);
+                               } else if (strncmp (entity, "ndash", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x2013, o);
+                               } else if (strncmp (entity, "mdash", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x2014, o);
+                               } else if (strncmp (entity, "lsquo", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x2018, o);
+                               } else if (strncmp (entity, "rsquo", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x2019, o);
+                               } else if (strncmp (entity, "ldquo", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x201c, o);
+                               } else if (strncmp (entity, "rdquo", sizeof(entity)) == 0) {
+                                       o += g_unichar_to_utf8 (0x201d, o);
                                } else if (entity[0] == '#') {
                                        int base = 10;
                                        char *str = entity + 1;


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