]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-7500: add ability to insert a custom callback to the core video thread
authorSeven Du <dujinfang@gmail.com>
Sat, 23 Aug 2014 08:54:50 +0000 (16:54 +0800)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:46:43 +0000 (12:46 -0500)
commit35ff4b5cdaf2f25c3c73be8a841e7f1d3baf6c15
treee684613aab32a3d7ebf6603e8303f15d5722a626
parent422a1f04197c71a4918c1a4822fc5d468cbe307c
FS-7500: add ability to insert a custom callback to the core video thread

the callback will be called on each loop on read video frame, or
the callback function call run it's own loop to take over the core
loop so it can read video from session by itself.

the callback function can -

return SWITCH_STATUS_SUCCESS to wait another loop
return SWITCH_STATUS_CONTINUE to continue use the default behaviour
return anything else will break the core video loop and end the
       core thread
src/include/private/switch_core_pvt.h
src/include/switch_core.h
src/include/switch_types.h
src/switch_core_media.c
src/switch_core_session.c