Commit bb09a2e6 authored by hpi1's avatar hpi1

Fix leak

parent 68f098cb
......@@ -25,6 +25,8 @@
#include "bdjo.h"
#include "util.h"
#include "libbluray/bdj/bdjo_parse.h"
#include "libbluray/bluray.h"
#include "libbluray/bluray_internal.h"
#include "libbluray/decoders/overlay.h"
......@@ -370,9 +372,10 @@ JNIEXPORT jobject JNICALL Java_org_videolan_Libbluray_getBdjoN(JNIEnv * env,
}
BD_DEBUG(DBG_JNI, "getBdjoN(%s)\n", file);
bdjo = bd_bdjo_get(bd, file);
bdjo = bdjo_get(bd_get_disc(bd), file);
if (bdjo) {
jbdjo = bdjo_make_jobj(env, bdjo);
bdjo_free(&bdjo);
} else {
BD_DEBUG(DBG_JNI | DBG_CRIT, "getBdjoN(%s) failed\n", file);
}
......
......@@ -1027,14 +1027,6 @@ uint64_t bd_get_uo_mask(BLURAY *bd)
}
#endif
#ifdef USING_BDJAVA
struct bdjo_data *bd_bdjo_get(struct bluray *bd, const char *file)
{
return bdjo_get(bd->disc, file);
}
#endif
#ifdef USING_BDJAVA
void bd_select_rate(BLURAY *bd, float rate, int reason)
{
......
......@@ -51,9 +51,6 @@ BD_PRIVATE void bd_set_bdj_uo_mask(struct bluray *bd, unsigned mask);
* title selection
*/
struct bdjo_data;
BD_PRIVATE struct bdjo_data *bd_bdjo_get(struct bluray *bd, const char *file);
BD_PRIVATE int bd_play_title_internal(struct bluray *bd, unsigned title);
/*
......
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