Community
cancel
Showing results for 
Search instead for 
Did you mean: 
franknatoli
New Contributor I
49 Views

Splitter::Run Usage

simple_player application in audio_video_codecs in SelectSplitter first calls Splitter::Init and then calls Splitter::Run. None of the examples in umc-manual.pdf appear to suggest calling the Run function. The manual simply says that Run "runs the internal processing thread". Can anyone comment on the need for calling the Run function? Thanks.
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
49 Views

Hello,

there is comment from our expert:

In fact, Run() after Init() is needed for MP4 splitter only. For other splitters Run() right after Init() has no effect.
Actually Run method was not inserted in MP4Splitter::Init in order to save system resources. MP4 Splitter performs each split track in a separate thread. If one wants to split other tracks he can call Stop, then change his params and then call Run. Only threads for his new configuration will start then.

Regards,
Vladimir

Reply