Package: gmediaserver
Version: 0.12.0-1
Severity: normal
Tags: patch
When my Terratec Noxon accesses the gmediaserver in browsing mode the
browsing queries contain no sorting order:
<u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<ObjectID>689</ObjectID>
<BrowseFlag>BrowseDirectChildren</BrowseFlag>
<Filter>@childCount,dc:creator,res,[EMAIL PROTECTED],upnp:searchClass</Filter>
<StartingIndex>0</StartingIndex>
<RequestedCount>50</RequestedCount>
<SortCriteria></SortCriteria>
</u:Browse>
so entries on the display are not sorted. The included patch installs
a default sorting (entry name, ignore case).
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (700, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.14-leifp4
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages gmediaserver depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libid3-3 3.8.3-6 Library for manipulating ID3v1 and
ii libmagic 4.17-5 File type determination library us
ii libtag1c 1.4-4 TagLib Audio Meta-Data Library
ii libtagc0 1.4-4 TagLib Audio Meta-Data Library (C
ii libupnp0 1.2.1-2 Intel Universal Plug And Play SDK
ii libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library
gmediaserver recommends no packages.
-- no debconf information
--- src/contentdir.c.orig 2007-01-26 20:53:26.000000000 +0100
+++ src/contentdir.c 2007-01-26 20:54:08.000000000 +0100
@@ -145,6 +145,11 @@
const Entry *e1 = k1;
const Entry *e2 = k2;
+ if ( criteria->first == NULL ) {
+ /* default sorting */
+ return strcasecmp(e1->name, e2->name);
+ }
+
sort_entry = criteria->first;
while (sort_entry != NULL) {
char *p1 = get_entry_property(e1, sort_entry->property);