Commit cd82f307 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

dvd_input: always init dev->dvdcss

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 8bda55f8
......@@ -99,10 +99,12 @@ static dvd_input_t css_open(const char *target,
dev->dvdcss = DVDcss_open(target);
else if(stream && stream_cb) {
if (DVDcss_open_stream)
dev->dvdcss = DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb);
dev->dvdcss = DVDcss_open_stream ?
DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb) :
if(dev->dvdcss == 0) {
fprintf(stderr, "libdvdread: Could not open %s with libdvdcss.\n", target);
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