mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
framepositioner: Avoid dereferencing NULL pointer
This commit is contained in:
parent
e3aa157d53
commit
ed2c7006c5
1 changed files with 2 additions and 2 deletions
|
@ -200,9 +200,9 @@ reposition_properties (GstFramePositioner * pos, gint old_track_width,
|
|||
}
|
||||
|
||||
g_object_get (binding, "control_source", &source, NULL);
|
||||
if (!GST_IS_TIMED_VALUE_CONTROL_SOURCE (source)) {
|
||||
if (!source || !GST_IS_TIMED_VALUE_CONTROL_SOURCE (source)) {
|
||||
GST_FIXME_OBJECT (pos, "Implement support for control source type: %s",
|
||||
G_OBJECT_TYPE_NAME (source));
|
||||
source ? G_OBJECT_TYPE_NAME (source) : "NULL");
|
||||
|
||||
goto next;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue