comparison src/metadata.c @ 126:5dcaf3785ebe

fix process terminate problem. add dynamic Content-Length header.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 03 Oct 2010 21:55:37 +0900
parents e413158cae13
children 2a9ac5ce2c7e
comparison
equal deleted inserted replaced
125:e413158cae13 126:5dcaf3785ebe
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 metadata_add_file (ut, ut->root_entry, STREAM_LOCATION, STREAM_FILE_NAME, &st);
568 ut->contentlist = NULL;
568 //metadata_add_container (ut, ut->root_entry, "/web/"); 569 //metadata_add_container (ut, ut->root_entry, "/web/");
569 570
570 #if 0 571 #if 0
571 /* add files from content directory */ 572 /* add files from content directory */
572 for (i=0 ; i < ut->contentlist->count ; i++) 573 for (i=0 ; i < ut->contentlist->count ; i++)