I'm too lazy to comment this
authorDavid Schleef <ds@schleef.org>
Fri, 7 Nov 2003 22:21:37 +0000 (22:21 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 7 Nov 2003 22:21:37 +0000 (22:21 +0000)
Original commit message from CVS:
*** empty log message ***

sys/ximage/Makefile.am
sys/ximage/ximagesink.c

index 8096bd3..1757e68 100644 (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
index eca0a64..6a33f7a 100644 (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