validate: Avoid dereferencing NULL pointer
authorThibault Saunier <tsaunier@igalia.com>
Thu, 9 Apr 2020 15:16:34 +0000 (11:16 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 10 Apr 2020 15:12:12 +0000 (11:12 -0400)
CID: 1461266

ges/ges-validate.c

index cbdf153795a4aadc1df599d3d3d3e37bf7e642b7..abfff9d1359e16a7b045e5eddef3c87acfc6c132 100644 (file)
@@ -417,7 +417,7 @@ GES_START_VALIDATE_ACTION (_edit)
 
     REPORT_UNLESS (GST_CLOCK_TIME_IS_VALID (position), beach,
         "Invalid frame number '%" G_GINT64_FORMAT "': %s", fposition,
-        err->message);
+        err ? err->message : "Unknown");
   }
 
   gst_structure_get_int (action->structure, "new-layer-priority",