configure.ac: When testing for X libs, use the X CFlags

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.
This commit is contained in:
Jan Schmidt 2005-08-01 21:14:22 +00:00
parent 497b586076
commit b34c0e7e53
3 changed files with 17 additions and 11 deletions

View file

@ -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:

View 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 ***

View file

@ -419,23 +419,15 @@ gst_adder_change_state (GstElement * element)
break;
case GST_STATE_PAUSED_TO_PLAYING:
break;
case GST_STATE_PAUSED_TO_READY:
gst_collectpads_stop (adder->collect);
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;
}
return ret;
}