SDL_Event event;
while (SDL_PollEvent(&event));
- if (!gst_sdlvideosink_lock(sdlvideosink))
+ if (!gst_sdlvideosink_lock(sdlvideosink)) {
+ g_message ("could not lock\n");
return FALSE;
+ }
/* Draw bands of color on the raw surface, as run indicator for debugging */
sbuffer = (char *)sdlvideosink->screen->pixels;
gst_pad_event_default (pad, event);
break;
}
- gst_event_free (event);
+ gst_event_unref (event);
return;
}
sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf), NULL);
}
- if (!gst_sdlvideosink_lock(sdlvideosink))
+ if (!gst_sdlvideosink_lock(sdlvideosink)) {
+ g_message ("could not lock\n");
return;
+ }
/* buf->yuv */
if (sdlvideosink->format == GST_MAKE_FOURCC('I','4','2','0') ||