kwiktec/sendts

Command line options -D and -v2 will cause the KwikFlixTV to fail.

mikepetry opened this issue · 0 comments

Note that on line 420 there are three pthread_t variables:

    • thread1 is used to read a dir of files or a single file
    • thread2 is not used in the program and should be used to output the buffer state.
    • s_thread is used to send packets.

On line 765 pthread_create uses thread1 at parameter 1 even though thread1 will have already been created by the time this code executes.

Also there should be a line just prior to line 765: pthread_attr_setschedpolicy(&attr_d, policy_d)

  • Note that policy_d is not used in the program.
  • Line 754 has pthread_setinheritsched(&attr_d, PTHREAD_EXPLICIT_SCHED) which will use the scheduling policy from attr_d which is never set.