mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
pngenc: Call png_jmpbuf() instead of accessing png_struct_ptr directly
Fixes #612700 (again)
This commit is contained in:
parent
0ce782383f
commit
43e3e5c0d7
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ gst_pngenc_chain (GstPad * pad, GstBuffer * buf)
|
|||
}
|
||||
|
||||
/* non-0 return is from a longjmp inside of libpng */
|
||||
if (setjmp (pngenc->png_struct_ptr->jmpbuf) != 0) {
|
||||
if (setjmp (png_jmpbuf (pngenc->png_struct_ptr)) != 0) {
|
||||
gst_buffer_unref (buf);
|
||||
png_destroy_write_struct (&pngenc->png_struct_ptr, &pngenc->png_info_ptr);
|
||||
GST_ELEMENT_ERROR (pngenc, LIBRARY, FAILED, (NULL),
|
||||
|
|
Loading…
Reference in a new issue