GstXvContext *context;
gint align, offset;
GstXvImageMemory *mem;
+#ifdef HAVE_XSHM
gint expected_size = 0;
+#endif
context = allocator->context;
return GST_MEMORY_CAST (mem);
/* ERRORS */
-unexpected_size:
- {
- g_mutex_unlock (&context->lock);
- g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_WRITE,
- "unexpected XShm image size (got %d, expected %d)",
- mem->xvimage->data_size, expected_size);
- goto beach;
- }
create_failed:
{
g_mutex_unlock (&context->lock);
goto beach;
}
#ifdef HAVE_XSHM
+unexpected_size:
+ {
+ g_mutex_unlock (&context->lock);
+ g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_WRITE,
+ "unexpected XShm image size (got %d, expected %d)",
+ mem->xvimage->data_size, expected_size);
+ goto beach;
+ }
shmget_failed:
{
g_mutex_unlock (&context->lock);