timeline: Ensure setting framerate in timeline_get_framerate
authorThibault Saunier <tsaunier@igalia.com>
Thu, 9 Apr 2020 15:10:43 +0000 (11:10 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 10 Apr 2020 15:12:12 +0000 (11:12 -0400)
CID: 14612501461288

ges/ges-timeline.c

index ab65978a656eca260426e77cf962bd496770eb70..c6d59fd25bfdae16f24c1ac546cdd2855c1e603a 100644 (file)
@@ -1081,10 +1081,10 @@ timeline_get_framerate (GESTimeline * self, gint * fps_n, gint * fps_d)
 {
   GList *tmp;
 
+  *fps_n = *fps_d = -1;
   if (!self)
     goto done;
 
-  *fps_n = *fps_d = -1;
   LOCK_DYN (self);
   for (tmp = self->tracks; tmp; tmp = tmp->next) {
     if (GES_IS_VIDEO_TRACK (tmp->data)) {