*/
if (subtitle > 0)
{
- hb_subtitle_t * subt;
- hb_subtitle_config_t sub_config;
-
- subt = (hb_subtitle_t *)hb_list_item(title->list_subtitle, subtitle);
- sub_config = subt->config;
-
/* if i is 0, then we are in the first item of the subtitles which we need to
* check for the "Foreign Audio Search" which would be subtitleSourceTrackNum of 1
* bearing in mind that for all tracks subtitleSourceTrackNum of 0 is None.
/* We are setting a source subtitle so access the source subtitle info */
hb_subtitle_t * subt;
- hb_subtitle_config_t sub_config;
subt = (hb_subtitle_t *)hb_list_item(title->list_subtitle, subtitle);
- sub_config = subt->config;
if (subt != NULL)
{
[self writeToActivityLog: "Setting Subtitle: %s", subt];
+
+ hb_subtitle_config_t sub_config = subt->config;
if (!burned && job->mux == HB_MUX_MKV &&
subt->format == hb_subtitle_s::PICTURESUB)
*/
if (subtitle > 0)
{
- hb_subtitle_t * subt;
- hb_subtitle_config_t sub_config;
-
- subt = (hb_subtitle_t *)hb_list_item(title->list_subtitle, subtitle);
- sub_config = subt->config;
-
/* if i is 0, then we are in the first item of the subtitles which we need to
* check for the "Foreign Audio Search" which would be subtitleSourceTrackNum of 1
* bearing in mind that for all tracks subtitleSourceTrackNum of 0 is None.
{
job->select_subtitle_config.dest = hb_subtitle_config_s::PASSTHRUSUB;
}
+ else
+ {
+ job->select_subtitle_config.dest = hb_subtitle_config_s::RENDERSUB;
+ }
job->select_subtitle_config.force = force;
job->select_subtitle_config.default_track = def;
/* We are setting a source subtitle so access the source subtitle info */
hb_subtitle_t * subt;
- hb_subtitle_config_t sub_config;
subt = (hb_subtitle_t *)hb_list_item(title->list_subtitle, subtitle);
- sub_config = subt->config;
if (subt != NULL)
{
[self writeToActivityLog: "Setting Subtitle: %s", subt];
+
+ hb_subtitle_config_t sub_config = subt->config;
if (!burned && job->mux == HB_MUX_MKV &&
subt->format == hb_subtitle_s::PICTURESUB)