diff --git a/ChangeLog b/ChangeLog index 3b5811e3fa..7fad14a356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-05 Julien Moutte + + * 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 * gst/volume/Makefile.am: diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 2e9da9de83..bfa24f965f 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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) {