Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
profile: transcode - add missing transcoder_set_properties() call
  • Loading branch information
perexg committed Oct 9, 2014
1 parent 3a6f6af commit 7753a6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/profile.c
Expand Up @@ -750,6 +750,7 @@ profile_transcode_work(profile_t *_pro, streaming_target_t *src,
{
profile_transcode_t *pro = (profile_transcode_t *)_pro;
transcoder_props_t props;
streaming_target_t *st;

memset(&props, 0, sizeof(props));
props.tp_vcodec = pro->pro_vcodec;
Expand All @@ -763,7 +764,10 @@ profile_transcode_work(profile_t *_pro, streaming_target_t *src,
if (destroy)
*destroy = profile_transcode_work_destroy;

return transcoder_create(src);
st = transcoder_create(src);
if (st)
transcoder_set_properties(st, &props);
return st;
}

static int
Expand Down

0 comments on commit 7753a6f

Please sign in to comment.