Re: Segfault at sweep_line_delete on video playback

David Smith <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
> diff --git a/src/cairo-bentley-ottmann-rectangular.c b/src/cairo-bentley-ottmann-rectangular.c
> index 5541bdc..042a9d8 100644
> --- a/src/cairo-bentley-ottmann-rectangular.c
> +++ b/src/cairo-bentley-ottmann-rectangular.c
> @@ -563,6 +563,9 @@ sweep_line_delete (sweep_line_t	*sweep, rectangle_t *rectangle)
>  {
>      cairo_bool_t update;
>  
> +    if (!rectangle->left && !rectangle->right)
> +	return FALSE;
> +
>      update = TRUE;
>      if (sweep->fill_rule == CAIRO_FILL_RULE_WINDING &&
>  	rectangle->left.prev->dir == rectangle->left.dir)

I tried compiling the patch and it threw this error:

cairo-bentley-ottmann-rectangular.c:566:29: error: wrong type argument
to unary exclamation mark
cairo-bentley-ottmann-rectangular.c:566:9: error: wrong type argument to
unary exclamation mark

-David Smith

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.