| 759 | } |
| 760 | |
| 761 | static 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 | |
| 787 | static int test_sub_list( char ** list, int pos ) |
| 788 | { |
no test coverage detected