mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
Fix some possible-NULL pointer usage.
This commit is contained in:
parent
0a30eb6329
commit
86fd6a0d3e
3 changed files with 27 additions and 19 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue