From 54f25e115858b68ee45a812428420fb0807e8478 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sat, 5 Jan 2008 22:25:05 +0000 Subject: [PATCH] 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 * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new): Add debugging information to understand how X calculates the stride for XvImages. --- ChangeLog | 6 ++++++ sys/xvimage/xvimagesink.c | 11 +++++++++++ 2 files changed, 17 insertions(+) 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) {