deps/media-playback: Just null the first frame pointer on decode
memset is a little excessive considering we only check the first
pointer.
(cherry picked from commit 192d33ce86)
This commit is contained in:
parent
faf4fd5b40
commit
8b6b18079e
1 changed files with 1 additions and 1 deletions
2
deps/media-playback/media-playback/media.c
vendored
2
deps/media-playback/media-playback/media.c
vendored
|
|
@ -299,7 +299,7 @@ bool mp_media_prepare_frames(mp_media_t *m)
|
|||
* these pointers to signify they're not valid. (the obsframe
|
||||
* structure is only used in the media thread, so this isn't a
|
||||
* threading issue) */
|
||||
memset(&m->obsframe, 0, sizeof(m->obsframe));
|
||||
m->obsframe.data[0] = NULL;
|
||||
|
||||
if (m->has_video && !mp_decode_frame(&m->v))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue