diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-10-25 13:09:26 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-10-25 13:09:26 +0100 |
commit | 0700413f8676ca7224250cdfabf4af7aaedb3bf9 (patch) | |
tree | fdf819355825a9d95e5813b9d613d782060fe694 /modules/vidloop | |
parent | 0f2511896f1ba55f7792cc3fd89de6f100ee6f84 (diff) |
vidloop: check explicitly if frame is valid, before calling display
Diffstat (limited to 'modules/vidloop')
-rw-r--r-- | modules/vidloop/vidloop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c index ee24713..381e97c 100644 --- a/modules/vidloop/vidloop.c +++ b/modules/vidloop/vidloop.c @@ -112,7 +112,10 @@ static int packet_handler(bool marker, const uint8_t *hdr, size_t hdr_len, } } - display(vl, &frame); + if (vidframe_isvalid(&frame)) { + + display(vl, &frame); + } out: mem_deref(mb); |