[gstreamer-bugs] [Bug 546883] [basetransform] ximagesink fails when resizing video window

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Aug 13 10:06:35 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=546883

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #3 from Michael Smith  2008-08-13 17:06 UTC -------
I get some debug info like this (I added some stuff to print out more info
about the current caps):

0:00:02.562920155 15254  0x82d55a8 LOG             ximagesink
ximagesink.c:1668:gst_ximagesink_buffer_alloc:<ximagesink0> a buffer of 174080
bytes was requested with caps video/x-raw-rgb, bpp=(int)32, depth=(int)24,
endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680,
blue_mask=(int)-16777216, width=(int)320, height=(int)136,
framerate=(fraction)2997/125, pixel-aspect-ratio=(fraction)1/1 and offset
18446744073709551615
0:00:02.563074730 15254  0x82d55a8 LOG             ximagesink
ximagesink.c:1706:gst_ximagesink_buffer_alloc:<ximagesink0> trying to resize to
window geometry ignoring aspect ratio
0:00:02.563090992 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:1725:gst_ximagesink_buffer_alloc: we would love to receive a
470x268 video
0:00:02.567073607 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:1757:gst_ximagesink_buffer_alloc: peer pad accepts our desired
caps video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321,
red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216,
width=(int)470, height=(int)268, framerate=(fraction)2997/125,
pixel-aspect-ratio=(fraction)1/1 buffer size is now 503840 bytes
0:00:02.567118170 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:220:gst_ximage_buffer_finalize:<ximagesink0> destroy image
0xb4f62888 as its size changed -1x-1 vs current 320x136
0:00:02.567161804 15254  0x8187460 LOG             ximagesink
ximagesink.c:743:gst_ximagesink_ximage_put:<ximagesink0> XShmPutImage on
0xb4f62810, src: 0, 0 - dest: 75, 66, dim: 320x136, win 470x268
0:00:02.617312423 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:427:gst_ximagesink_ximage_new:<ximagesink0> creating image
0xb4f62900 (470x268)
0:00:02.617338153 15254  0x82d55a8 LOG             ximagesink
ximagesink.c:459:gst_ximagesink_ximage_new:<ximagesink0> XShm image size is
503840, width 470, stride 1880
0:00:02.623394736 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:220:gst_ximage_buffer_finalize:<ximagesink0> destroy image
0xb4f62900 as its size changed 470x268 vs current 320x136
0:00:02.625073642 15254  0x82d55a8 LOG             ximagesink
ximagesink.c:1598:gst_ximagesink_show_frame:<ximagesink0> normal buffer,
copying from it
0:00:02.625089393 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:1600:gst_ximagesink_show_frame:<ximagesink0> creating our ximage
0:00:02.625102274 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:427:gst_ximagesink_ximage_new:<ximagesink0> creating image
0xb4f62978 (320x136)
0:00:02.625114284 15254  0x82d55a8 LOG             ximagesink
ximagesink.c:459:gst_ximagesink_ximage_new:<ximagesink0> XShm image size is
174080, width 320, stride 1280
0:00:02.625713786 15254  0x82d55a8 WARN            ximagesink
ximagesink.c:1608:gst_ximagesink_show_frame:<ximagesink0> Buffer size 503840
(320x136 pixels), ximage size 174080, caps video/x-raw-rgb, bpp=(int)32,
depth=(int)24, endianness=(int)4321, red_mask=(int)65280,
green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)320,
height=(int)136, framerate=(fraction)2997/125, pixel-aspect-ratio=(fraction)1/1
0:00:02.625732252 15254  0x82d55a8 WARN            ximagesink
ximagesink.c:1612:gst_ximagesink_show_frame:<ximagesink0> error: Failed to
create output image buffer of 320x136 pixels
0:00:02.625741937 15254  0x82d55a8 WARN            ximagesink
ximagesink.c:1612:gst_ximagesink_show_frame:<ximagesink0> error: XServer
allocated buffer size did not match input buffer
ERROR: from element /pipeline0/ximagesink0: Failed to create output image
buffer of 320x136 pixels
Additional debug info:
ximagesink.c(1612): gst_ximagesink_show_frame (): /pipeline0/ximagesink0:
XServer allocated buffer size did not match input buffer
Execution ended after 2061481499 ns.
Setting pipeline to PAUSED ...
0:00:02.626066428 15254  0x82d55a8 DEBUG           ximagesink
ximagesink.c:1631:gst_ximagesink_show_frame: could not create image
Setting pipeline to READY ...
Setting pipeline to NULL ...
0:00:02.694799818 15254  0x804e470 DEBUG           ximagesink
ximagesink.c:212:gst_ximage_buffer_finalize:<ximagesink0> destroy image
0xb4f62810 because the sink is shutting down
FREEING pipeline ...


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=546883.




More information about the Gstreamer-bugs mailing list