configure.ac: X_DISPLAY_MISSING is set to 1 if AC_PATH_XTRA fails to find X developme...
authorJulien Moutte <julien@moutte.net>
Sun, 21 Dec 2003 19:48:40 +0000 (19:48 +0000)
committerJulien Moutte <julien@moutte.net>
Sun, 21 Dec 2003 19:48:40 +0000 (19:48 +0000)
Original commit message from CVS:
* configure.ac: X_DISPLAY_MISSING is set to 1 if AC_PATH_XTRA fails to
find X development files. I don't understand the previous tests and
they fail on my debian/ppc unstable. This one works.
* examples/gstplay/player.c: (main): Set the pipeline to READY before
exiting.
* gst-libs/gst/play/gstplay.c: (gst_play_get_length_callback),
(gst_play_set_video_sink), (gst_play_set_audio_sink),
(gst_play_set_visualization): Add some safety checks in set_ methods
and state_change. This was throwing some ugly CRITICAL messages when
pipeline was getting disposed and casts were failing.

ChangeLog
configure.ac
examples/gstplay/player.c

index 5c3eb26..5e6b59e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2003-12-21  Julien MOUTTE  <julien@moutte.net>
+
+       * configure.ac: X_DISPLAY_MISSING is set to 1 if AC_PATH_XTRA fails to
+       find X development files. I don't understand the previous tests and
+       they fail on my debian/ppc unstable. This one works.
+       * examples/gstplay/player.c: (main): Set the pipeline to READY before
+       exiting.
+       * gst-libs/gst/play/gstplay.c: (gst_play_get_length_callback),
+       (gst_play_set_video_sink), (gst_play_set_audio_sink),
+       (gst_play_set_visualization): Add some safety checks in set_ methods
+       and state_change. This was throwing some ugly CRITICAL messages when
+       pipeline was getting disposed and casts were failing.
+
 2003-12-21  Ronald Bultje  <rbultje@ronald.bitfreak.net>
 
        * configure.ac:
index 6055d3b..b2d342c 100644 (file)
@@ -505,7 +505,8 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
 GST_CHECK_FEATURE(X, [X libraries and plugins],
                   [ximagesink], [
   AC_PATH_XTRA
-  if test "x$X_CFLAGS" == "x" -o "$X_CFLAGS" == "-DX_DISPLAY_MISSING"
+dnl  if test "x$X_CFLAGS" == "x" -o "$X_CFLAGS" == "-DX_DISPLAY_MISSING"
+  if test "x$X_DISPLAY_MISSING" = "x1"
   then
     AC_MSG_NOTICE([cannot find X11 development files])
     HAVE_X="no"
index 41fbb54..ef58e32 100644 (file)
@@ -149,6 +149,8 @@ main (int argc, char *argv[])
 
   g_main_loop_run (loop);
 
+  gst_element_set_state (GST_ELEMENT (play), GST_STATE_READY);
+  
   /* unref */
   gst_object_unref (GST_OBJECT (play));