Extracting command activity from Xine
In this post I described how to tweak the Xine source code to print the current stream position in a friendly format. Printing out the command activity (ie. 'pause', 'play', 'stop', etc.) is similarly easy. In the file
src/xitk/event.c, just add a line in the function gui_execute_action_id that looks like this: fprintf( stdout, "action\t%d\n", action); fflush( stdout );. Then run make debug && make install-debug to deploy the changes.

0 Comments:
Post a Comment
<< Home