mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
validate:plugins: Handle the case where we have a pipelines with only 1 frame
This commit is contained in:
parent
4881013d66
commit
7917654eef
1 changed files with 9 additions and 0 deletions
|
@ -521,6 +521,15 @@ _find_frame (GstValidateSsim * self, GArray * frames, GstClockTime ts,
|
|||
guint i;
|
||||
Frame *lframe = &g_array_index (frames, Frame, 0);
|
||||
|
||||
if (frames->len == 1) {
|
||||
Frame *iframe = &g_array_index (frames, Frame, 0);
|
||||
|
||||
if (iframe->ts == ts)
|
||||
return iframe;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i = 1; i < frames->len; i++) {
|
||||
Frame *iframe = &g_array_index (frames, Frame, i);
|
||||
|
||||
|
|
Loading…
Reference in a new issue