I'm too lazy to comment this

Original commit message from CVS:
*** empty log message ***
This commit is contained in:
David Schleef 2003-11-07 22:21:37 +00:00
parent 3e99a8feb0
commit bed312e6a2
2 changed files with 6 additions and 5 deletions

View file

@ -1,9 +1,11 @@
OTHER_LIBS = -lX11 -lXext
plugin_LTLIBRARIES = libgstximagesink.la
libgstximagesink_la_SOURCES = ximagesink.c
libgstximagesink_la_CFLAGS = $(GST_CFLAGS) $(X_CFLAGS)
libgstximagesink_la_LIBADD = $(X_LIBS)
libgstximagesink_la_LIBADD = $(X_LIBS) $(OTHER_LIBS)
libgstximagesink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) \
$(top_builddir)/gst-libs/gst/navigation/libgstnavigation.la \
$(top_builddir)/gst-libs/gst/xoverlay/libgstxoverlay.la

View file

@ -625,18 +625,17 @@ gst_ximagesink_chain (GstPad *pad, GstData *_data)
switch (e.type)
{
case ConfigureNotify:
/* Window got resized or moved. We do caps negotiation
again to get video scaler to fit that new size */
GST_DEBUG ("ximagesink window is at %d, %d with geometry : %d,%d",
e.xconfigure.x, e.xconfigure.y,
e.xconfigure.width, e.xconfigure.height);
event = gst_event_new (GST_EVENT_RENEGOTIATE);
event->src = GST_OBJECT (ximagesink);
event->event_data.caps.caps = GST_CAPS_NEW (
gst_pad_try_set_caps (ximagesink->sinkpad, GST_CAPS_NEW (
"ximagesink_videoscaling",
"video/x-raw-rgb",
"width", GST_PROPS_INT (e.xconfigure.width),
"height", GST_PROPS_INT (e.xconfigure.height));
"height", GST_PROPS_INT (e.xconfigure.height)));
break;
case MotionNotify:
/* Mouse pointer moved over our window. We send upstream