File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
apps/examples/video_player_example/video_player_example_app Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,19 @@ static void app_add_video_player( app_o* self ) {
8888 video_and_texture_t video;
8989
9090 static char const * video_player_examples[] = {
91- " ./local_resources/test_data/out_ref.mp4" , // foreman
9291 " ./local_resources/test_data/milo.mp4" , // fauna
92+ " ./local_resources/test_data/out_ref.mp4" , // foreman
9393 };
9494
9595 video.video_player = new le::VideoPlayer ( self->renderer , video_player_examples[ self->video_players .size () % 2 ] );
9696 video.video_texture_handle = le::Renderer::produceTextureHandle ( nullptr );
9797
98- // We must forward the callback in case we want to be able to hot-reload this app,
98+ // We must ** forward** the callback in case we want to be able to hot-reload this app,
9999 // as the callback address needs to be automatically updated if the app gets reloaded.
100100 //
101- video.video_player ->set_on_playback_complete_callback ( le_core_forward_callback ( video_player_example_app_api_i->video_player_example_app_i .on_video_playback_complete ), self );
101+ video.video_player ->set_on_playback_complete_callback (
102+ le_core_forward_callback ( video_player_example_app_api_i->video_player_example_app_i .on_video_playback_complete ),
103+ self );
102104
103105 self->video_players .push_back ( video );
104106}
Original file line number Diff line number Diff line change 4242#endif
4343#include " util/volk/volk.h"
4444
45- static constexpr char const * vk_err_to_c_str ( const VkResult& tp ); // ffdecl
46- static void post_reload_hook ( le_backend_o* backend ); // ffdecl
47- static std::vector<uint8_t > load_file ( const std::filesystem::path& file_path, bool * success ); // ffdecl
45+ static constexpr char const * vk_err_to_c_str ( const VkResult& tp ); // ffdecl
46+ static void post_reload_hook ( le_backend_o* backend ); // ffdecl
47+ static std::vector<uint8_t > load_file ( const std::filesystem::path& file_path, bool * success ); // ffdecl
4848static int demux_h264_data ( std::ifstream& input_file, size_t input_size, struct le_video_data_h264_t * video ); // ffdecl
4949// ----------------------------------------------------------------------
5050
You can’t perform that action at this time.
0 commit comments