openbsd-ports/multimedia/xine-lib/patches/patch-src_input_input_dvd_c
sthen 0c0d6dd0d0 update xine-lib to 1.1.19 and switch to new-style LIB_DEPENDS/WANTLIB
from Brad, thanks landry@ for testing in bulk build
2010-09-13 20:12:16 +00:00

22 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_input_input_dvd_c,v 1.10 2010/09/13 20:12:16 sthen Exp $
--- src/input/input_dvd.c.orig Sat Jul 24 18:09:09 2010
+++ src/input/input_dvd.c Sun Jul 25 14:34:53 2010
@@ -614,7 +614,7 @@ static buf_element_t *dvd_plugin_read_block (input_plu
xprintf(this->stream->xine, XINE_VERBOSITY_LOG,
_("input_dvd: Error getting next block from DVD (%s)\n"), dvdnav_err_to_string(this->dvdnav));
_x_message(this->stream, XINE_MSG_READ_ERROR,
- dvdnav_err_to_string(this->dvdnav), NULL);
+ dvdnav_err_to_string(this->dvdnav), (char *)NULL);
if (block != buf->mem) dvdnav_free_cache_block(this->dvdnav, block);
buf->free_buffer(buf);
return NULL;
@@ -1505,7 +1505,7 @@ static int dvd_plugin_open (input_plugin_t *this_gen)
xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("input_dvd: Error opening DVD device\n"));
_x_message(this->stream, XINE_MSG_READ_ERROR,
/* FIXME: see FIXME in dvd_parse_try_open() */
- (strlen(locator) && !(locator[0] == '/' && locator[1] == '\0')) ? locator : class->dvd_device, NULL);
+ (strlen(locator) && !(locator[0] == '/' && locator[1] == '\0')) ? locator : class->dvd_device, (char *)NULL);
free (locator_orig);
return 0;
}