[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gmediaserver-devel] patch for supporting URL in PLS file
From: |
Han |
Subject: |
[gmediaserver-devel] patch for supporting URL in PLS file |
Date: |
Tue, 17 Mar 2009 21:24:17 -0700 |
Hi,
I am using gmediaserver (0.13.0). It has been very useful to me. I am
also trying to use
gmediaserver to read a PLS file which contains a single SHOUTcast URL.
However, it did not work.
I tried to modify the function get_entry_property() in contentdir.c so
that it reads DETAIL_URL details. It seems to be a very simple
change, i.e. uncomment a few lines. I am not very sure if there is any
side effects but so far working well for me with KQED public radio
streaming.
Here is the diff :
diff --git a/src/contentdir.c b/src/contentdir.c
index e1e7547..5ec100b 100644
--- a/src/contentdir.c
+++ b/src/contentdir.c
@@ -97,9 +97,13 @@ get_entry_property(const Entry *entry, char *property)
if (strcmp(property, "upnp:class") == 0) {
if (has_entry_detail(entry, DETAIL_CHILDREN))
return xstrdup("object.container.storageFolder");
- /*if (has_entry_detail(entry, DETAIL_URL))
- return xstrdup("object.item.audioItem.audioBroadcast");*/
-
+ if (has_entry_detail(entry, DETAIL_URL)) {
+ return xstrdup("object.item.audioItem.audioBroadcast");
+ }
detail = get_entry_detail(entry, DETAIL_FILE);
switch (detail->data.file.item_class) {
case ITEM_AUDIO:
cheers,
Han
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gmediaserver-devel] patch for supporting URL in PLS file,
Han <=