MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / PrintTitleSetInfo

Function PrintTitleSetInfo

test/test.c:761–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761static void PrintTitleSetInfo( hb_title_set_t * title_set )
762{
763 if (json)
764 {
765 hb_dict_t * title_set_dict;
766 char * title_set_json;
767
768 title_set_dict = hb_title_set_to_dict(title_set);
769 title_set_json = hb_value_get_json(title_set_dict);
770 hb_value_free(&title_set_dict);
771 fprintf(stdout, "JSON Title Set: %s\n", title_set_json);
772 free(title_set_json);
773 }
774 else
775 {
776 int i;
777 hb_title_t * title;
778
779 for( i = 0; i < hb_list_count( title_set->list_title ); i++ )
780 {
781 title = hb_list_item( title_set->list_title, i );
782 PrintTitleInfo( title, title_set->feature );
783 }
784 }
785}
786
787static int test_sub_list( char ** list, int pos )
788{

Callers 1

HandleEventsFunction · 0.85

Calls 6

hb_title_set_to_dictFunction · 0.85
hb_value_get_jsonFunction · 0.85
hb_value_freeFunction · 0.85
hb_list_countFunction · 0.85
hb_list_itemFunction · 0.85
PrintTitleInfoFunction · 0.85

Tested by

no test coverage detected