• Frédéric Dalleau's avatar
    basetransform: Check if meta transform_func is NULL before using it · ca7fa6a6
    Frédéric Dalleau authored
    An untested pointer segfaulted in webkit while playing video
    on imx6 sabrelite. It turned out that the imx plugin didn't
    implement the meta transform function.
    
    The following GST_DEBUG trace was visible:
    gstbasetransform.c:1779:foreach_metadata:<conv2> copy metadata
                                                    GstImxVpuBufferMetaAPI
    
    Thread 26 vqueue:src received signal SIGSEGV, Segmentation fault.
    
    (gdb) bt
     0x00000000 in ?? ()
     0x73f8d7d8 in foreach_metadata (inbuf=0xc9b020, meta=0x474b2490,
                      user_data=<optimized out>) at gstbasetransform.c:1781
     0x73eb3ea8 in gst_buffer_foreach_meta (buffer=buffer@entry=0xc9b020,
                      func=0x73f8d705 <foreach_metadata>,
                      user_data=user_data@entry=0x474b24d4)
                      at gstbuffer.c:2234
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782050
    ca7fa6a6
Name
Last commit
Last update
common @ 48a5d85e Loading commit data...
data Loading commit data...
docs Loading commit data...
gst Loading commit data...
hooks Loading commit data...
libs Loading commit data...
m4 Loading commit data...
pkgconfig Loading commit data...
plugins Loading commit data...
po Loading commit data...
scripts Loading commit data...
tests Loading commit data...
tools Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.static-linking Loading commit data...
RELEASE Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config.h.meson Loading commit data...
configure.ac Loading commit data...
gst-element-check.m4 Loading commit data...
gstreamer.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
stamp.h.in Loading commit data...