Author Topic: How to add commands to xine-plugin  (Read 3450 times)

Andreaz

  • Regular Poster
  • **
  • Posts: 26
    • View Profile
How to add commands to xine-plugin
« on: May 12, 2007, 11:38:48 pm »
I whish to add command to change Aspect-ratio: Auto/16:9/4:3
Why? Some of my DVDs er playing in 4:3 format, but states 16:9 on the cover..

This could be done in: Device Template # 6 Xine plugin i guess?
But can't figure out how the commands are buildt.



darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: How to add commands to xine-plugin
« Reply #1 on: May 14, 2007, 01:47:53 am »
All the following is for Pluto but should be the same for linuxMCE as far as I know.

You add commands through the Device Template. The best way is to search the commands to find one that already exists, see what command group it is in and add the group. Individual commands can then be switched on/off.

Once this is done then for a C++ device (like xine-plugin) you will need to regenerate the code and recompile.
You would be advised to get a release version of the source and make changes to that rather than work with the latest SVN code. Then try and merge your changes into the latest once you are happy with everything. This will ensure all the supporting libraries etc will compile and be what you expect.

To generate the code, get the DCEGen source and build that. Then run DCEGen from the source directory(which is in the same tree as everything else) with the device number for the template.

You should see placeholders in the code for your commands. Make changes as needed and use the Makefile to build.

You will then want to get the changes back into the main source so that you wont have to do this everytime.

HTH
Darren