Mercurial > pt1.oyama
diff src/metadata.c @ 146:066f33b2213a
EXPERIMENTAL: Select a particular program from multi-channel.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Tue, 21 Aug 2012 04:21:11 +0900 |
parents | 2a9ac5ce2c7e |
children | 30e91361506a |
line wrap: on
line diff
--- a/src/metadata.c Thu Aug 16 21:57:34 2012 +0900 +++ b/src/metadata.c Tue Aug 21 04:21:11 2012 +0900 @@ -564,7 +564,12 @@ #endif struct upnp_entry_t *entry = ut->root_entry; st.st_size = 100*1024*1024; - metadata_add_file (ut, ut->root_entry, STREAM_LOCATION, STREAM_FILE_NAME, &st); + if (ut->nr_channel == 0) { + metadata_add_file (ut, ut->root_entry, STREAM_LOCATION, STREAM_FILE_NAME, &st); + } else { + for (i=0; i < ut->nr_channel; i++) + metadata_add_file (ut, ut->root_entry, ut->location_name[i], ut->channel_name[i], &st); + } ut->contentlist = NULL; //metadata_add_container (ut, ut->root_entry, "/web/");