emotion: implement SPU switch for generic/vlc.

Patch by Hugo Camboulive <hugo.camboulive@zodiacaerospace.com>.


SVN revision: 71831
This commit is contained in:
Cedric BAIL 2012-06-08 05:10:29 +00:00
parent 080e163c6f
commit 71c85603a7
4 changed files with 20 additions and 0 deletions

View File

@ -5,3 +5,5 @@ Sebastian Dransfeld <sd@tango.flipp.net>
Cedric Bail <cedric.bail@free.fr>
Rafael Antognolli <antognolli@profusion.mobi>
Jérôme Pinot <ngc891@gmail.com>
Pierre Le Magourou <pierre.lemagourou@openwide.fr>
Hugo Camboulive <hugo.camboulive@zodiacaerospace.com>

View File

@ -17,3 +17,7 @@
2012-06-08 Pierre Le Magourou
* Add support for "playback_started" callback to generic player.
2012-06-08 Hugo Camboulive
* Implement SPU switch for generic/vlc.

View File

@ -5,6 +5,7 @@ Changes since Emotion 1.0.0:
Additions:
- Add support for "playback_started" callback to generic player.
- Implement SPU switch for generic/vlc.
Fixes:
- build out of tree.

View File

@ -473,6 +473,16 @@ _volume_set(struct _App *app)
libvlc_audio_set_volume(app->mp, vol);
}
static void
_spu_track_set(struct _App *app)
{
int track;
_em_read_safe(app->em_read, &track, sizeof(track));
libvlc_video_set_spu(app->mp, track);
}
static void
_audio_track_set(struct _App *app)
{
@ -596,6 +606,9 @@ _process_emotion_commands(struct _App *app)
case EM_CMD_VOLUME_SET:
_volume_set(app);
break;
case EM_CMD_SPU_TRACK_SET:
_spu_track_set(app);
break;
case EM_CMD_AUDIO_TRACK_SET:
_audio_track_set(app);
break;