Re: [PATCH] upnp: add support for thumbnails




On Thu, 20 Jan 2011 17:26:54 +0100, Guillaume Emont <gemont igalia com> wrote:
(...)
+static gboolean
+has_thumbnail_marker (xmlNode *node)
+{
+  gchar *dlna_stuff;
+  gboolean ret;
+
+  dlna_stuff = didl_res_get_protocol_info (node, 3);
+  ret = strstr("JPEG_TN", dlna_stuff) != NULL;
+
+  g_free (dlna_stuff);
+  return ret;
+}
+
(...)

if this is the only code required to support other image formats, then I see no reason to ignore PNG_* or JPEG_SM, even if they are not that common, or am I missing something?

Iago


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