All pastes #976397 Raw Edit

cli chapter name defaults

public diff v1 · immutable
·published 2008-04-08 03:33 UTC
rendered paste body
Index: test/test.c===================================================================--- test/test.c	(revision 1389)+++ test/test.c	(working copy)@@ -745,6 +745,28 @@                         hb_close_csv_file( file );                     }                 }+                else+                {+                    /* No marker file */+                    +                    int number_of_chapters = hb_list_count(job->title->list_chapter);+                    int chapter;+                    +                    for(chapter = 0; chapter <= number_of_chapters - 1 ; chapter++)+                    {+                        char tmp_buffer[1024];+                        char *string = tmp_buffer;++                        tmp_buffer[0] = '\0';+                        snprintf( tmp_buffer, 1023, "Chapter %i", chapter + 1 );+                        string = tmp_buffer;+                        +                        hb_chapter_t * chapter_s;+                        chapter_s = hb_list_item( job->title->list_chapter, chapter);+                        strncpy(chapter_s->title, string, 1023);+                        chapter_s->title[1023] = '\0';+                    }+                } 			}              if( crop[0] >= 0 && crop[1] >= 0 &&