Fix some possible-NULL pointer usage.

This commit is contained in:
Elliott Sales de Andrade 2020-11-23 03:56:57 -05:00 committed by Wim Taymans
parent 0a30eb6329
commit 86fd6a0d3e
3 changed files with 27 additions and 19 deletions

View file

@ -387,7 +387,7 @@ handle_video_fields (ConvertData *d)
}
value = gst_structure_get_value (d->cs, "width");
value2 = gst_structure_get_value (d->cs, "height");
if (value || value2) {
if (value && value2) {
struct spa_rectangle v;
for (i = 0; get_nth_rectangle (value, value2, i, &v); i++) {
if (i == 0) {