From fcb7b833b0f636c0398b718223e4fad3781101ee Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 22 Oct 2014 10:17:55 +0200 Subject: [PATCH] profile: fix profile_chain_open (for profiles without muxing) --- src/profile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile.h b/src/profile.h index c8d05583..5332ceda 100644 --- a/src/profile.h +++ b/src/profile.h @@ -98,7 +98,7 @@ profile_work(profile_t *pro, struct streaming_target *src, static inline int profile_chain_open(profile_t *pro, profile_chain_t *prch, muxer_config_t *m_cfg, int flags, size_t qsize) - { return pro->pro_open(pro, prch, m_cfg, flags, qsize); } + { return pro && pro->pro_open ? pro->pro_open(pro, prch, m_cfg, flags, qsize) : -1; } int profile_chain_raw_open(profile_chain_t *prch, size_t qsize); void profile_chain_close(profile_chain_t *prch);