Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IPTV: another little weight corection in get_weight callback for #3732
  • Loading branch information
perexg committed Apr 19, 2016
1 parent a046135 commit ac2d90e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/iptv/iptv.c
Expand Up @@ -203,7 +203,8 @@ iptv_input_get_weight ( mpegts_input_t *mi, mpegts_mux_t *mm, int flags, int wei
int w;

/* Find the "min" weight */
iptv_input_is_free(mi, mm, 1, weight, &w);
if (iptv_input_is_free(mi, mm, 1, weight, &w) == NULL)
w = 0;

return w;

Expand Down

0 comments on commit ac2d90e

Please sign in to comment.