diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 20:13:21 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 20:13:21 +0200 |
commit | 2c442080281fa7c583042a39beed6d47891aab74 (patch) | |
tree | ee2834646f89cd391884b570d2e0b86fbc945fbe | |
parent | f7293a004a864626e6ff764ddb0e62f87abea56c (diff) | |
download | xine-lib-2c442080281fa7c583042a39beed6d47891aab74.tar.gz xine-lib-2c442080281fa7c583042a39beed6d47891aab74.tar.bz2 |
Initialise the xine_event_t instance directly on declaration.
--HG--
extra : transplant_source : %3B%87%DA%89%F2.%1F%F4%F0L/%C4%A3%5B%5C3%1A%09%05g
-rw-r--r-- | src/input/input_dvd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 9a83c0662..a845d7628 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -352,8 +352,13 @@ static void send_mouse_enter_leave_event(dvd_input_plugin_t *this, int direction } static int update_title_display(dvd_input_plugin_t *this) { - xine_event_t uevent; xine_ui_data_t data; + xine_event_t uevent = { + .type = XINE_EVENT_UI_SET_TITLE, + .stream = this->stream, + .data = &data, + .data_length = sizeof(data) + }; int tt=-1, pr=-1; int num_tt = 0; @@ -429,10 +434,6 @@ static int update_title_display(dvd_input_plugin_t *this) { #ifdef INPUT_DEBUG printf("input_dvd: Changing title to read '%s'\n", data.str); #endif - uevent.type = XINE_EVENT_UI_SET_TITLE; - uevent.stream = this->stream; - uevent.data = &data; - uevent.data_length = sizeof(data); xine_event_send(this->stream, &uevent); return 1; |