forked from enlightenment/efl
emotion: implement SPU switch for generic/vlc.
Patch by Hugo Camboulive <hugo.camboulive@zodiacaerospace.com>. SVN revision: 71831
This commit is contained in:
parent
080e163c6f
commit
71c85603a7
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue