mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
sys/xvimage/xvimagesink.c: Add debugging information to understand how X calculates the stride for XvImages.
Original commit message from CVS: 2008-01-05 Julien Moutte <julien@fluendo.com> * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new): Add debugging information to understand how X calculates the stride for XvImages.
This commit is contained in:
parent
3ac84ec4ff
commit
54f25e1158
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-01-05 Julien Moutte <julien@fluendo.com>
|
||||
|
||||
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new): Add
|
||||
debugging information to understand how X calculates the stride
|
||||
for XvImages.
|
||||
|
||||
2008-01-03 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/volume/Makefile.am:
|
||||
|
|
|
@ -600,6 +600,17 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps)
|
|||
xvimage->size, expected_size);
|
||||
}
|
||||
|
||||
/* Be verbose about our XvImage stride */
|
||||
{
|
||||
guint plane;
|
||||
|
||||
for (plane = 0; plane < xvimage->xvimage->num_planes; plane++) {
|
||||
GST_DEBUG_OBJECT (xvimagesink, "Plane %u has a pitch of %d bytes, "
|
||||
"offset of %d", plane, xvimage->xvimage->pitches[plane],
|
||||
xvimage->xvimage->offsets[plane]);
|
||||
}
|
||||
}
|
||||
|
||||
xvimage->SHMInfo.shmid = shmget (IPC_PRIVATE, xvimage->size,
|
||||
IPC_CREAT | 0777);
|
||||
if (xvimage->SHMInfo.shmid == -1) {
|
||||
|
|
Loading…
Reference in a new issue