summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-10-18 11:35:34 +0000
committerphintuka <phintuka>2011-10-18 11:35:34 +0000
commitb30c4636424ae4745b9378ddf18174751db52bc3 (patch)
tree321bccd33ea24eb40d4c3bb935e2044c76bd5567
parent117137208a7fce793d1120bbbf699d0c2236381f (diff)
downloadxineliboutput-b30c4636424ae4745b9378ddf18174751db52bc3.tar.gz
xineliboutput-b30c4636424ae4745b9378ddf18174751db52bc3.tar.bz2
Cosmetics
-rw-r--r--xine/BluRay/input_bluray.c48
1 files changed, 26 insertions, 22 deletions
diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c
index adb7fe0d..32cdeab6 100644
--- a/xine/BluRay/input_bluray.c
+++ b/xine/BluRay/input_bluray.c
@@ -303,7 +303,7 @@ static int mount_iso_image(bluray_input_plugin_t *this)
}
/*
- *
+ * overlay
*/
static void send_num_buttons(bluray_input_plugin_t *this, int n)
@@ -425,6 +425,10 @@ static void overlay_proc(void *this_gen, const BD_OVERLAY * const ov)
}
}
+/*
+ * stream info
+ */
+
static void update_stream_info(bluray_input_plugin_t *this)
{
if (this->title_info) {
@@ -549,19 +553,9 @@ static void update_title_info(bluray_input_plugin_t *this, int playlist_id)
update_title_name(this);
}
-static int open_title (bluray_input_plugin_t *this, int title_idx)
-{
- if (bd_select_title(this->bdh, title_idx) <= 0) {
- LOGMSG("bd_select_title(%d) failed\n", title_idx);
- return 0;
- }
-
- this->current_title_idx = title_idx;
-
- update_title_info(this, -1);
-
- return 1;
-}
+/*
+ * libbluray event handling
+ */
#ifndef DEMUX_OPTIONAL_DATA_FLUSH
# define DEMUX_OPTIONAL_DATA_FLUSH 0x10000
@@ -784,6 +778,24 @@ static void handle_libbluray_events(bluray_input_plugin_t *this)
}
}
+/*
+ * xine event handling
+ */
+
+static int open_title (bluray_input_plugin_t *this, int title_idx)
+{
+ if (bd_select_title(this->bdh, title_idx) <= 0) {
+ LOGMSG("bd_select_title(%d) failed\n", title_idx);
+ return 0;
+ }
+
+ this->current_title_idx = title_idx;
+
+ update_title_info(this, -1);
+
+ return 1;
+}
+
static void send_mouse_enter_leave_event(bluray_input_plugin_t *this, int direction)
{
if (direction != this->mouse_inside_button) {
@@ -1011,14 +1023,6 @@ static off_t bluray_plugin_read (input_plugin_t *this_gen, char *buf, off_t len)
this->stream_flushed = 0;
-#if 0
- if (buf[4] != 0x47) {
- LOGMSG("bd_read(): invalid data ? [%02x %02x %02x %02x %02x ...]\n",
- buf[0], buf[1], buf[2], buf[3], buf[4]);
- return 0;
- }
-#endif
-
return result;
}