]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
profile: fix profile_chain_open (for profiles without muxing)
authorJaroslav Kysela <perex@perex.cz>
Wed, 22 Oct 2014 08:17:55 +0000 (10:17 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 22 Oct 2014 08:17:55 +0000 (10:17 +0200)
src/profile.h

index c8d05583e95768ec5f68f8dfae309d421f742a69..5332cedac3b5fcf189c9e7f5de7892617f932250 100644 (file)
@@ -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);