[libdvdnav-devel] Fix compilation when staticly linked to libdvdcss

Jean-Baptiste Kempf git at videolan.org
Wed Jan 28 17:17:55 CET 2015


libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 28 17:17:32 2015 +0100| [574b886b733e8737e8cf17d9330049289e837ac3] | committer: Jean-Baptiste Kempf

Fix compilation when staticly linked to libdvdcss

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=574b886b733e8737e8cf17d9330049289e837ac3
---

 src/dvd_input.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dvd_input.c b/src/dvd_input.c
index 1832fde..e412864 100644
--- a/src/dvd_input.c
+++ b/src/dvd_input.c
@@ -101,10 +101,11 @@ static dvd_input_t css_open(const char *target,
   else if(stream && stream_cb) {
 #ifdef HAVE_DVDCSS_DVDCSS_H
       dev->dvdcss = DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb);
-#endif
+#else
       dev->dvdcss = DVDcss_open_stream ?
                     DVDcss_open_stream(stream, (dvdcss_stream_cb *)stream_cb) :
                     NULL;
+#endif
   }
   if(dev->dvdcss == 0) {
     fprintf(stderr, "libdvdread: Could not open %s with libdvdcss.\n", target);



More information about the libdvdnav-devel mailing list