diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-22 12:00:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 12:00:34 +0200 |
commit | a342131eba2834240289112a1b8d5d0c68a265c9 (patch) | |
tree | c412df9c24c8b568086ea6ff72a097fb8d20dbc0 /modules/gdnative | |
parent | 1e67f214c520b2c1a9fed30f78440c4e1d4d14dd (diff) | |
parent | 856a8226a5306632f5dd4d9e9c916d89e3e21495 (diff) |
Merge pull request #27673 from qarmin/small_fixes
Small fixes, mostly duplicated code
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/videodecoder/video_stream_gdnative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/videodecoder/video_stream_gdnative.cpp b/modules/gdnative/videodecoder/video_stream_gdnative.cpp index 8fcebe7855..9bb1186269 100644 --- a/modules/gdnative/videodecoder/video_stream_gdnative.cpp +++ b/modules/gdnative/videodecoder/video_stream_gdnative.cpp @@ -61,8 +61,8 @@ int64_t GDAPI godot_videodecoder_file_seek(void *ptr, int64_t pos, int whence) { // file FileAccess *file = reinterpret_cast<FileAccess *>(ptr); - size_t len = file->get_len(); if (file) { + size_t len = file->get_len(); switch (whence) { case SEEK_SET: { // Just for explicitness |