Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
profile: fix profile_chain_open (for profiles without muxing)
  • Loading branch information
perexg committed Oct 22, 2014
1 parent 46e75c2 commit fcb7b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile.h
Expand Up @@ -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);

Expand Down

0 comments on commit fcb7b83

Please sign in to comment.