There are two different issue here.
@malkia, the extension and g++ tool shouldn’t make a difference at all.
Altair, try doing manual casting on those lines; use (void *) and (ctx *)
I hope that helps,
-Alex
On Wed, Nov 23, 2011 at 5:52 AM, Dimiter “malkia” Stanev <malkia at gmail.com <mailto:malkia at gmail.com>> wrote:
I just took a brief look, and spotted this:
static void *lock (void *data, void **p_pixels) {
struct ctx *ctx = data;
SDL_LockMutex(ctx->mutex);
int pitch = 1920*3;
SDL_LockTexture(ctx->tex, NULL, p_pixels, &pitch);
return NULL; /* picture identifier, not needed here */
}
The pitch is returned, not provided. “int pitch = 1920*3” is bogus,
and not returning it and handling it later is problematic.
It could be that NONPOT textures are allowed on some platforms, and
not on others (NONPOT - Non Power of Two)
On 11/23/11 12:56 AM, Vittorio Giovara wrote:
I've resorted to this implementation, but it is crashing the GL
driver
http://bugzilla.libsdl.org/__**show_bug.cgi?id=1129<http://bugzilla.libsdl.org/__show_bug.cgi?id=1129>
<http://bugzilla.libsdl.org/**show_bug.cgi?id=1129<http://bugzilla.libsdl.org/show_bug.cgi?id=1129>
Any comment or improvement is welcome!
Vittorio
On Wed, Nov 23, 2011 at 9:07 AM, Altair Linux<altairlinux at gmail.com <mailto:altairlinux at gmail.com>**> wrote:
Hi everybody,
I am trying to test this example
http://wiki.videolan.org/__**LibVLC_SampleCode_SDL<http://wiki.videolan.org/__LibVLC_SampleCode_SDL>
<http://wiki.videolan.org/**LibVLC_SampleCode_SDL<http://wiki.videolan.org/LibVLC_SampleCode_SDL>>
but I have
these
errors:
# g++ TestVLC.cpp -o TestVLC -lSDL
TestVLC.cpp: In function ?void* lock(void*, void**)?:
TestVLC.cpp:30: error: invalid conversion from ?void*? to
?ctx*?
TestVLC.cpp: In function ?void unlock(void*, void*, void*
const*)?:
TestVLC.cpp:40: error: invalid conversion from ?void*? to
?ctx*?
TestVLC.cpp:43: error: invalid conversion from ?void*? to
?uint16_t*?
I want to see movies in a SDL_Surface. avi, flc, mp4, etc.
I use Debian stable
______________________________**___________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/__**listinfo.cgi/sdl-libsdl.org<http://lists.libsdl.org/__listinfo.cgi/sdl-libsdl.org>
<http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.org<http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>
_________**
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/__listinfo.cgi/sdl-libsdl.org
<http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org