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 <jb@videolan.org>
parent 8bda55f8
......@@ -99,10 +99,12 @@ static dvd_input_t css_open(const char *target,
if(target)
dev->dvdcss = DVDcss_open(target);
else if(stream && stream_cb) {
#ifndef HAVE_DVDCSS_DVDCSS_H
if (DVDcss_open_stream)
#endif
#ifdef HAVE_DVDCSS_DVDCSS_H
dev->dvdcss = DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb);
#endif
dev->dvdcss = DVDcss_open_stream ?
DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb) :
NULL;
}
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