comparison 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
comparison
equal deleted inserted replaced
145:4e39ce051c57 146:066f33b2213a
562 upnp_entry_add_child (ut, ut->root_entry, entry); 562 upnp_entry_add_child (ut, ut->root_entry, entry);
563 metadata_add_container (ut, entry, "/web/"); 563 metadata_add_container (ut, entry, "/web/");
564 #endif 564 #endif
565 struct upnp_entry_t *entry = ut->root_entry; 565 struct upnp_entry_t *entry = ut->root_entry;
566 st.st_size = 100*1024*1024; 566 st.st_size = 100*1024*1024;
567 metadata_add_file (ut, ut->root_entry, STREAM_LOCATION, STREAM_FILE_NAME, &st); 567 if (ut->nr_channel == 0) {
568 metadata_add_file (ut, ut->root_entry, STREAM_LOCATION, STREAM_FILE_NAME, &st);
569 } else {
570 for (i=0; i < ut->nr_channel; i++)
571 metadata_add_file (ut, ut->root_entry, ut->location_name[i], ut->channel_name[i], &st);
572 }
568 ut->contentlist = NULL; 573 ut->contentlist = NULL;
569 //metadata_add_container (ut, ut->root_entry, "/web/"); 574 //metadata_add_container (ut, ut->root_entry, "/web/");
570 575
571 #if 0 576 #if 0
572 /* add files from content directory */ 577 /* add files from content directory */