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:
Julien Moutte 2008-01-05 22:25:05 +00:00
parent 3ac84ec4ff
commit 54f25e1158
2 changed files with 17 additions and 0 deletions

View file

@ -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:

View file

@ -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) {