diff options
author | phintuka <phintuka> | 2008-09-19 09:53:01 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-09-19 09:53:01 +0000 |
commit | 5c040fc98e0bbde426eeceaf32e06cf20c6fb2ee (patch) | |
tree | 600299cf90fafb6e0ca1f6742f3bead87132ff9d /xine_input_vdr.c | |
parent | 1957bb22d79b73164bbe0467d48ba740dc2d8a13 (diff) | |
download | xineliboutput-5c040fc98e0bbde426eeceaf32e06cf20c6fb2ee.tar.gz xineliboutput-5c040fc98e0bbde426eeceaf32e06cf20c6fb2ee.tar.bz2 |
Forward XINE_EVENT_UI_NUM_BUTTONS events to VDR
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r-- | xine_input_vdr.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 172341e5..d6139b86 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.175 2008-08-03 21:01:45 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.176 2008-09-19 09:53:01 phintuka Exp $ * */ @@ -4075,6 +4075,19 @@ static void vdr_event_cb (void *user_data, const xine_event_t *event) break; } + case XINE_EVENT_UI_NUM_BUTTONS: + if (event->stream == this->slave_stream) { + xine_ui_data_t *data = (xine_ui_data_t*)event->data; + char msg[64]; + snprintf(msg, sizeof(msg), "INFO DVDBUTTONS %d\r\n", data->num_buttons); + msg[sizeof(msg)-1] = 0; + if (this->funcs.xine_input_event) + this->funcs.xine_input_event(msg, NULL); + else + write_control(this, msg); + break; + } + case XINE_EVENT_UI_CHANNELS_CHANGED: if(event->stream==this->slave_stream) slave_track_maps_changed(this); |