configure.ac: When testing for X libs, use the X CFlags
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 1 Aug 2005 21:14:22 +0000 (21:14 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 1 Aug 2005 21:14:22 +0000 (21:14 +0000)
Original commit message from CVS:
* configure.ac:
When testing for X libs, use the X CFlags
* gst/adder/gstadder.c: (gst_adder_change_state):
Stop the collectpads before calling parent state change function
on PAUSED->READY, otherwise we deadlock deactivating pads.

ChangeLog
configure.ac
gst/adder/gstadder.c

index a75010a..ffe687b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-01  Jan Schmidt  <thaytan@mad.scientist.com>
+       * configure.ac:
+         When testing for X libs, use the X CFlags 
+       * gst/adder/gstadder.c: (gst_adder_change_state):
+         Stop the collectpads before calling parent state change function
+         on PAUSED->READY, otherwise we deadlock deactivating pads.
+
 2005-08-01  Stefan Kost  <ensonic@users.sf.net>
 
        * configure.ac:
index d2acaff..d1fe278 100644 (file)
@@ -415,6 +415,11 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
 GST_CHECK_FEATURE(X, [X libraries and plugins],
                   [ximagesink], [
   AC_PATH_XTRA
+  ac_cflags_save="$CFLAGS"
+  ac_cppflags_save="$CPPFLAGS"
+  CFLAGS="$CFLAGS $X_CFLAGS"
+  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
+
   dnl now try to find the HEADER
   AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
 
@@ -431,6 +436,8 @@ GST_CHECK_FEATURE(X, [X libraries and plugins],
     AC_SUBST(X_LIBS)
   fi
   AC_SUBST(HAVE_X)
+  CFLAGS="$ac_cflags_save"
+  CPPFLAGS="$ac_cppflags_save"
 ])
   
 dnl *** XVideo ***
index 4969084..87dcea9 100644 (file)
@@ -419,23 +419,15 @@ gst_adder_change_state (GstElement * element)
       break;
     case GST_STATE_PAUSED_TO_PLAYING:
       break;
-    default:
-      break;
-  }
-
-  ret = GST_ELEMENT_CLASS (parent_class)->change_state (element);
-
-  switch (transition) {
-    case GST_STATE_PLAYING_TO_PAUSED:
-      break;
     case GST_STATE_PAUSED_TO_READY:
       gst_collectpads_stop (adder->collect);
       break;
-    case GST_STATE_READY_TO_NULL:
-      break;
     default:
       break;
   }
+
+  ret = GST_ELEMENT_CLASS (parent_class)->change_state (element);
+
   return ret;
 }