Setting trace_callback inside rohc_comp_new2()

Asked by BHASKAR TILAK

Instead of main() sample program, I am trying to set trace_callback inside rohc_comp_new2(), so that I can get all the prints right from compressor creation.
A have set it just after the compressor allocation.

However I see that, it is not printing anything once outside rohc_comp_new2(). I have defined the print_rohc_traces() in src/common/rohc_traces_internal.c.

Do I need to set trace_callback at the top level only ie inside main()?

Thanks,
- Bhaskar Tilak

Question information

Language:
English Edit question
Status:
Answered
For:
rohc Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Didier Barvaux (didier-barvaux) said :
#1

Hello,

You might try to call it just before the call to the rohc_comp_set_wlsb_window_width() function in the rohc_comp_new2() function. It should work and should print at least the trace that the rohc_comp_set_wlsb_window_width() function prints.

Regards,
Didier

Can you help with this problem?

Provide an answer of your own, or ask BHASKAR TILAK for more information if necessary.

To post a message you must log in.