Commit b9471c05 authored by hpi1's avatar hpi1

Store PID of mainpath embedded IG stream

parent ea8f4217
......@@ -102,6 +102,7 @@ struct bluray {
/* streams */
BD_STREAM st0; /* main path */
BD_PRELOAD st_ig; /* preloaded IG stream sub path */
int ig_pid; /* pid of currently selected IG stream in main path */
/* buffer for bd_read(): current aligned unit of main stream (st0) */
uint8_t int_buf[6144];
......@@ -1305,6 +1306,8 @@ static int _init_ig_stream(BLURAY *bd)
int ig_subpath = -1;
uint16_t ig_pid = 0;
bd->ig_pid = 0;
if (!bd->graphics_controller) {
return 0;
}
......@@ -1317,6 +1320,12 @@ static int _init_ig_stream(BLURAY *bd)
return 1;
}
/* store PID of main path embedded IG stream */
if (ig_subpath < 0) {
bd->ig_pid = ig_pid;
return 1;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment