[libbluray-devel] Check for NULL
hpi1
git at videolan.org
Tue Jun 6 10:08:11 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jun 6 10:51:27 2017 +0300| [a27d37449142bcfb943bf49cf90009415a01e52e] | committer: hpi1
Check for NULL
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a27d37449142bcfb943bf49cf90009415a01e52e
---
src/libbluray/disc/disc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/disc/disc.c b/src/libbluray/disc/disc.c
index e5485c20..be6a279d 100644
--- a/src/libbluray/disc/disc.c
+++ b/src/libbluray/disc/disc.c
@@ -688,7 +688,7 @@ const uint8_t *disc_get_data(BD_DISC *disc, int type)
void disc_event(BD_DISC *disc, uint32_t event, uint32_t param)
{
- if (disc->dec) {
+ if (disc && disc->dec) {
switch (event) {
case DISC_EVENT_START:
dec_start(disc->dec, param);
More information about the libbluray-devel
mailing list