| 5003 | } |
| 5004 | |
| 5005 | static int add_audio(hb_value_array_t *list, hb_title_t *title, int track) |
| 5006 | { |
| 5007 | // Check that the track exists |
| 5008 | if (hb_list_item(title->list_audio, track-1) == NULL) |
| 5009 | { |
| 5010 | fprintf(stderr, "Warning: Could not find audio track %d, skipped\n", |
| 5011 | track); |
| 5012 | return -1; |
| 5013 | } |
| 5014 | hb_dict_t *audio_dict = hb_dict_init(); |
| 5015 | hb_dict_set(audio_dict, "Track", hb_value_int(track-1)); |
| 5016 | hb_value_array_append(list, audio_dict); |
| 5017 | |
| 5018 | return 0; |
| 5019 | } |
| 5020 | |
| 5021 | static hb_dict_t* |
| 5022 | PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict) |
no test coverage detected