[Bug 788162] New: graphicsvideosurface : Check if d is NULL before using it, in Constructor GraphicsVideoSurface
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Sep 26 04:29:30 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788162
Bug ID: 788162
Summary: graphicsvideosurface : Check if d is NULL before using
it, in Constructor GraphicsVideoSurface
Classification: Platform
Product: GStreamer
Version: 1.13.x
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: qt-gstreamer
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: renu1.r at samsung.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Hi
I found the problem in this code.
GraphicsVideoSurface::GraphicsVideoSurface(QGraphicsView *parent)
: QObject(parent), d(new GraphicsVideoSurfacePrivate)
{
d->view = parent;
}
we should check d for NULL check, before Using it.
Solution:
GraphicsVideoSurface::GraphicsVideoSurface(QGraphicsView *parent)
: QObject(parent), d(new GraphicsVideoSurfacePrivate)
{
if(d)
d->view = parent;
}
Please review and share your feedback.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list