Commit d06af158 authored by John Doe's avatar John Doe Committed by Jean-Baptiste Kempf
Browse files

Trigger a BDPLUS_RUN_CONVTAB event to force convtab generation

Certain media players which offer an option to directly play playlist
items; in that case, no convtab is generated beforehand.
This fixes this case.
parent 62a56e95
Pipeline #19249 passed with stage
in 1 minute and 20 seconds
......@@ -293,9 +293,24 @@ bdplus_st_t *bdplus_m2ts(bdplus_t *plus, uint32_t m2ts)
bd_mutex_lock(plus->mutex);
if (!plus->conv_tab) {
BD_DEBUG(DBG_BDPLUS | DBG_CRIT, "[bdplus] bdplus_m2ts(%05u.m2ts): no conversion table\n", m2ts);
bd_mutex_unlock(plus->mutex);
return NULL;
/*
Certain media players which offer an option to directly play playlist
items (ie. playback w/o menus) call into the libbluray stack (and at
last into bdplus_m2ts()) in a way where - on BD+ enabled discs - no
convtab is being generated beforehand. To compensate, trigger a
BDPLUS_RUN_CONVTAB event to generate the needed convtab if it isn't
available yet.
*/
BD_DEBUG(DBG_BDPLUS | DBG_CRIT, "[bdplus] bdplus_m2ts(%05u.m2ts): no conversion table, triggering BDPLUS_RUN_CONVTAB\n", m2ts);
bdplus_event(plus, BDPLUS_RUN_CONVTAB, 32, 0);
if (!plus->conv_tab) {
BD_DEBUG(DBG_BDPLUS | DBG_CRIT, "[bdplus] bdplus_m2ts(%05u.m2ts): BDPLUS_RUN_CONVTAB yielded no convtab.\n", m2ts);
bd_mutex_unlock(plus->mutex);
return NULL;
}
}
bdplus_run_m2ts(plus, m2ts);
......
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