mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
glviewconvert: check pointer before dereferencing
priv->primary_out could be NULL, check before dereferencing it in GST_BUFFER_FLAG_SET () CID 1308945
This commit is contained in:
parent
f2e4344385
commit
648c2e20dc
1 changed files with 7 additions and 5 deletions
|
@ -2209,11 +2209,13 @@ gst_gl_view_convert_get_output (GstGLViewConvert * viewconvert,
|
|||
}
|
||||
|
||||
outbuf = priv->primary_out;
|
||||
gst_buffer_copy_into (outbuf, priv->primary_in,
|
||||
GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
|
||||
GST_BUFFER_FLAG_SET (outbuf,
|
||||
GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE |
|
||||
GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW);
|
||||
if (outbuf) {
|
||||
gst_buffer_copy_into (outbuf, priv->primary_in,
|
||||
GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
|
||||
GST_BUFFER_FLAG_SET (outbuf,
|
||||
GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE |
|
||||
GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW);
|
||||
}
|
||||
|
||||
if (priv->auxilliary_out) {
|
||||
gst_buffer_copy_into (priv->auxilliary_out,
|
||||
|
|
Loading…
Reference in a new issue