<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -84,6 +84,10 @@ int write_index_file(const char index[], const char tmp_index[], const unsigned
     char *write_buf;
     unsigned int i;
 
+	char *output_prefix_basename;
+	
+	output_prefix_basename = basename(output_prefix);
+
     index_fp = fopen(tmp_index, &quot;w&quot;);
     if (!index_fp) {
         fprintf(stderr, &quot;Could not open temporary m3u8 index file (%s), no index file will be created\n&quot;, tmp_index);
@@ -111,7 +115,7 @@ int write_index_file(const char index[], const char tmp_index[], const unsigned
     }
 
     for (i = first_segment; i &lt;= last_segment; i++) {
-        snprintf(write_buf, 1024, &quot;#EXTINF:%u,\n%s%s-%u.ts\n&quot;, segment_duration, http_prefix, output_prefix, i);
+        snprintf(write_buf, 1024, &quot;#EXTINF:%u,\n%s%s-%u.ts\n&quot;, segment_duration, http_prefix, output_prefix_basename, i);
         if (fwrite(write_buf, strlen(write_buf), 1, index_fp) != 1) {
             fprintf(stderr, &quot;Could not write to m3u8 index file, will not continue writing to index file\n&quot;);
             free(write_buf);</diff>
      <filename>segmenter.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2eb993ef6d1c7926b75d4c3bbf0be36353034e3c</id>
    </parent>
  </parents>
  <author>
    <name>Damien Tanner</name>
    <email>damien@new-bamboo.co.uk</email>
  </author>
  <url>http://github.com/newbamboo/segmenter/commit/10701e4efd3393fe4e256b05daf7f4d2480ecd6b</url>
  <id>10701e4efd3393fe4e256b05daf7f4d2480ecd6b</id>
  <committed-date>2009-10-19T09:45:12-07:00</committed-date>
  <authored-date>2009-10-19T09:45:12-07:00</authored-date>
  <message>Use basename of output_prefix so that the path isn't included in the url of the video files.</message>
  <tree>0ecd6c001219f9d74f3e4850900f4de43a494daa</tree>
  <committer>
    <name>Damien Tanner</name>
    <email>damien@new-bamboo.co.uk</email>
  </committer>
</commit>
