Commit 7e920d04 authored by cRTrn13's avatar cRTrn13

fix for BLURAY segfault

Made libbdnav include paths relative
parent 914aede0
......@@ -11,15 +11,16 @@ BLURAY *bd_open(const char* device_path, const char* keyfile_path)
{
BLURAY *bd = NULL;
bd->aacs = NULL;
bd->h_libaacs = NULL;
bd->fp = NULL;
printf("A\n");
if (device_path) {
strncpy(bd->device_path, device_path, 100);
bd = malloc(sizeof(BLURAY));
bd->aacs = NULL;
bd->h_libaacs = NULL;
bd->fp = NULL;
if (keyfile_path) {
if ((bd->h_libaacs = dlopen("libaacs.so", RTLD_LAZY))) {
DEBUG(DBG_BLURAY, "Downloaded libaacs (0x%08x)\n", bd->h_libaacs);
......
#if !defined(_BDPARSE_H_)
#define _BDPARSE_H_
#include "libbdnav/mpls_parse.h"
#include "libbdnav/clpi_parse.h"
#include "libbdnav/navigation.h"
#include "mpls_parse.h"
#include "clpi_parse.h"
#include "navigation.h"
#define BD_STREAM_TYPE_VIDEO_MPEG1 0x01
#define BD_STREAM_TYPE_VIDEO_MPEG2 0x02
......
......@@ -5,9 +5,9 @@
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#include "util/macro.h"
#include "file/file.h"
#include "util/bits.h"
#include "../util/macro.h"
#include "../file/file.h"
#include "../util/bits.h"
#include "clpi_parse.h"
#define CLPI_SIG1 ('H' << 24 | 'D' << 16 | 'M' << 8 | 'V')
......
......@@ -5,9 +5,9 @@
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#include "util/macro.h"
#include "file/file.h"
#include "util/bits.h"
#include "../util/macro.h"
#include "../file/file.h"
#include "../util/bits.h"
#include "mpls_parse.h"
#define MPLS_SIG1 ('M' << 24 | 'P' << 16 | 'L' << 8 | 'S')
......
#include <stdint.h>
#include <string.h>
#include "util/macro.h"
#include "util/logging.h"
#include "util/strutl.h"
#include "file/dir.h"
#include "file/file.h"
#include "libbdnav/mpls_parse.h"
#include "libbdnav/navigation.h"
#include "../util/macro.h"
#include "../util/logging.h"
#include "../util/strutl.h"
#include "../file/dir.h"
#include "../file/file.h"
#include "mpls_parse.h"
#include "navigation.h"
static int _filter_dup(MPLS_PL *pl_list[], int count, MPLS_PL *pl)
{
......
#include <stdint.h>
#include "libbdnav/mpls_parse.h"
#include "libbdnav/clpi_parse.h"
#include "mpls_parse.h"
#include "clpi_parse.h"
#define CONNECT_NON_SEAMLESS 0
#define CONNECT_SEAMLESS 1
......
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