timeline: Ensure setting framerate in timeline_get_framerate

CID: 1461250, 1461288
This commit is contained in:
Thibault Saunier 2020-04-09 11:10:43 -04:00
parent a8a33622d9
commit fadde5cfb9

View 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)) {