x11: fix build without XSHM

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673327
This commit is contained in:
Jonathan Lyons 2012-04-02 11:37:43 +02:00 committed by Wim Taymans
parent 086bee8c14
commit 798ce6c0e1
2 changed files with 4 additions and 0 deletions

View file

@ -259,6 +259,7 @@ create_failed:
("could not XShmCreateImage a %dx%d image", width, height));
goto beach;
}
#ifdef HAVE_XSHM
shmget_failed:
{
g_mutex_unlock (ximagesink->x_lock);
@ -290,6 +291,7 @@ xattach_failed:
width, height), ("Failed to XShmAttach"));
goto beach;
}
#endif
}
static void

View file

@ -293,6 +293,7 @@ create_failed:
("could not XvShmCreateImage a %dx%d image", width, height));
goto beach;
}
#ifdef HAVE_XSHM
shmget_failed:
{
g_mutex_unlock (xvimagesink->x_lock);
@ -324,6 +325,7 @@ xattach_failed:
width, height), ("Failed to XShmAttach"));
goto beach;
}
#endif
}
static void