From 7753a6f618e1ec75aae9456159eb5c462cacfa20 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 9 Oct 2014 21:58:38 +0200 Subject: [PATCH] profile: transcode - add missing transcoder_set_properties() call --- src/profile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index 2a2bd908..66533148 100644 --- a/src/profile.c +++ b/src/profile.c @@ -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; @@ -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