marcosjouron
6d2b21c6a4
VideoStreamGDNative: Fix playing video files without audio stream
2019-11-27 16:40:16 +01:00
SeleckyErik
61bda112bd
Refactor VideoPlayer and VideoStream
...
VideoStream:
- Fix const correctenss
VideoPlayer:
- Remove unused member variable last_frame
- Move _mix_audios function definition to source file
- Fix function parameter naming to match p_ convention
- Fix const correctness
- Add null checking
2019-10-24 01:35:47 +01:00
Rémi Verschelde
9b8c355eab
Merge pull request #32199 from starryalley/fix_seek
...
Fix VideostreamGDNative seek
2019-09-25 13:01:50 +02:00
Mark Kuo
8d2efe75ae
Fix VideostreamGDNative audio buffer handling
...
Fix the audio buffer start when there are previous remains
2019-09-19 15:28:33 +10:00
Mark Kuo
ec9c5171d2
Fix VideostreamGDNative seek
...
When seeking video, make sure audio buffers are reset and video time
is updated.
2019-09-19 15:27:31 +10:00
Anish
f0757f31a4
Fixes VideostreamGDNative crash on audio_channel=0.
...
Added an if case to check if the mix_callback exists before running any
of the audio code.
Fixes : #28644
2019-05-04 00:34:58 +05:30
qarmin
856a8226a5
Small fixes, mostly dupicated code
2019-04-08 11:03:37 +02:00
Anish
bd22b1cbe6
Fixes segfault on opening incompatible files.
...
If a file cannot be opened by the plugin connected, the engine
would crash. This has been fixed by quitting the open_file() method
early.
2019-03-11 16:41:30 +05:30
Anish
978c2a604a
Fixed crash on loading GDNative videos.
...
Fixed issue with loading a resource supported by the gdnative videodecoders
that does not exist.
2019-03-06 22:56:36 +01:00
marxin
e5f665c718
Fix -Wsign-compare warnings.
...
I decided to modify code in a defensive way. Ideally functions
like size() or length() should return an unsigned type.
2019-02-27 07:45:57 +01:00
Rémi Verschelde
322fad70bd
Fix copyright year in VideoStreamGDNative
2019-02-12 23:05:30 +01:00
Anish
8c1677fc3f
Fixed infinite loop at end of video.
...
A missing condition caused infinite looping, despite
the video playing flag being set to false.
Small change to fix.
Fixes : #20552
2019-01-12 00:51:59 +05:30
Rémi Verschelde
72feccf205
Adapt GDNative VideoStream to use ResourceFormatLoader
...
Same logic as used for Webm and Theora support in #19937 and #21084 ,
fixing issues when exporting projects.
2018-12-13 15:33:28 +01:00
Rémi Verschelde
012dac9aad
Fix includes and initialization for GDNative Videodecoder
...
Fixes warnings and a crash when running the destructor with an
uninitialized pcm pointer.
2018-12-13 15:31:13 +01:00
Anish
7199b7b5dd
Added interface for GDNative Videodecoder.
...
Interface and callback api added for Videodecoder support.
Should be able to construct any format videodecoder using
only the given interface.
GSoC 2018 project.
2018-12-13 15:19:09 +01:00