Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/configure.ac,v
retrieving revision 1.488
diff -u -r1.488 configure.ac
--- configure.ac	23 Nov 2004 12:41:06 -0000	1.488
+++ configure.ac	5 Dec 2004 02:49:09 -0000
@@ -324,6 +324,11 @@
 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '[_]*(gst_|Gst|GST_).*' $GST_LIBS"
 AC_SUBST(GST_PLUGIN_LDFLAGS)
 
+DEFAULT_AUDIO_SRC=sinesrc
+DEFAULT_AUDIO_SINK=fakesink
+DEFAULT_VIDEO_SRC=videotestsrc
+DEFAULT_VIDEO_SINK=fakesink
+
 dnl these are all the gst plug-ins, compilable without additional libs
 GST_PLUGINS_ALL="\
 	ac3parse \
@@ -463,6 +468,8 @@
       ])
     ])
   ])
+  DEFAULT_AUDIO_SINK=osssink
+  DEFAULT_AUDIO_SRC=osssrc
 ])
 
 dnl *** OS X audio ***
@@ -506,6 +513,10 @@
 translit(dnm, m, l) AM_CONDITIONAL(USE_SUNAUDIO, true)
 GST_CHECK_FEATURE(SUNAUDIO, [Sun Audio], sunaudiosink, [
   AC_CHECK_HEADER(sys/audioio.h, HAVE_SUNAUDIO="yes", HAVE_SUNAUDIO="no")
+  if test "x$HAVE_SUNAUDIO" = xyes ; then
+    DEFAULT_AUDIO_SINK=sunaudiosink
+    DEFAULT_AUDIO_SRC=sunaudiosrc
+  fi
 ])
 
 dnl *** Video CD ***
@@ -573,6 +584,7 @@
     X_LIBS="$X_LIBS -lX11"
     AC_SUBST(X_CFLAGS)
     AC_SUBST(X_LIBS)
+    DEFAULT_VIDEO_SINK=ximagesink
   fi
   AC_SUBST(HAVE_X)
 ])
@@ -604,6 +616,7 @@
     if test x$HAVE_XVIDEO = xyes; then
       XVIDEO_LIBS="-lXv_pic -lXext"
       AC_SUBST(XVIDEO_LIBS)
+      DEFAULT_VIDEO_SINK=xvimagesink
     else
       dnl try again using something else if we didn't find it first
       if test x$HAVE_XVIDEO = xno; then
@@ -661,6 +674,9 @@
 #include <linux/videodev.h>
     ])
   fi
+  if test "x$HAVE_GST_V4L" = xyes ; then
+    DEFAULT_VIDEO_SRC=v4lsrc
+  fi
 ])
 
 dnl *** Video 4 Linux 2 ***
@@ -689,6 +705,9 @@
                          [ AC_MSG_WARN([video4linux2 was not found])])
        ])
   fi
+  if test "x$HAVE_GST_V4L2" = xyes ; then
+    DEFAULT_VIDEO_SRC=v4l2src
+  fi
   dnl check for missing v4l2_buffer declaration (see #135919)
   if [ test x$HAVE_GST_V4L2 = xyes ]; then
     MISSING_DECL=0
@@ -1759,6 +1786,11 @@
   GST_CFLAGS="$GST_CFLAGS -g"
 fi
 
+AC_SUBST(DEFAULT_AUDIO_SINK)
+AC_SUBST(DEFAULT_AUDIO_SRC)
+AC_SUBST(DEFAULT_VIDEO_SINK)
+AC_SUBST(DEFAULT_VIDEO_SRC)
+
 dnl #############################
 dnl # Set automake conditionals #
 dnl #############################
Index: gconf/gstreamer.schemas.in
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/gconf/gstreamer.schemas.in,v
retrieving revision 1.2
diff -u -r1.2 gstreamer.schemas.in
--- gconf/gstreamer.schemas.in	5 Mar 2004 12:13:10 -0000	1.2
+++ gconf/gstreamer.schemas.in	5 Dec 2004 02:49:17 -0000
@@ -5,7 +5,7 @@
       <applyto>/system/gstreamer/@GST_MAJORMINOR@/default/audiosink</applyto>
       <owner>gstreamer</owner>
       <type>string</type>
-      <default>osssink</default>
+      <default>@DEFAULT_AUDIO_SINK@</default>
       <locale name="C">
         <short>default GStreamer audiosink</short>
         <long>GStreamer can play audio using any number of output elements.  Some possible choices are osssink, esdsink and alsasink.  The audiosink can be a partial pipeline instead of just one element.</long>
@@ -16,7 +16,7 @@
       <applyto>/system/gstreamer/@GST_MAJORMINOR@/default/videosink</applyto>
       <owner>gstreamer</owner>
       <type>string</type>
-      <default>xvimagesink</default>
+      <default>@DEFAULT_VIDEO_SINK@</default>
       <locale name="C">
         <short>default GStreamer videosink</short>
         <long>GStreamer can play video using any number of output elements.  Some possible choices are xvideosink, sdlvideosink and aasink.  The videosink can be a partial pipeline instead of just one element.</long>
@@ -27,7 +27,7 @@
       <applyto>/system/gstreamer/@GST_MAJORMINOR@/default/audiosrc</applyto>
       <owner>gstreamer</owner>
       <type>string</type>
-      <default>osssrc</default>
+      <default>@DEFAULT_AUDIO_SRC@</default>
       <locale name="C">
         <short>default GStreamer audio source</short>
         <long>GStreamer can record audio using any number of input elements.  Some possible choices are osssrc, esdsrc and alsasrc.  The audio source can be a partial pipeline instead of just one element.</long>
@@ -38,7 +38,7 @@
       <applyto>/system/gstreamer/@GST_MAJORMINOR@/default/videosrc</applyto>
       <owner>gstreamer</owner>
       <type>string</type>
-      <default>v4lsrc</default>
+      <default>@DEFAULT_VIDEO_SRC@</default>
       <locale name="C">
         <short>default GStreamer video source</short>
         <long>GStreamer can record video from any number of input elements.  Some possible choices are v4lsrc and videotestsrc. The video source can be a partial pipeline instead of just one element.</long>
@@ -49,7 +49,7 @@
       <applyto>/system/gstreamer/@GST_MAJORMINOR@/default/visualization</applyto>
       <owner>gstreamer</owner>
       <type>string</type>
-      <default>goom</default>
+      <default>@DEFAULT_VISUALIZATION@</default>
       <locale name="C">
         <short>default GStreamer visualization plugin</short>
         <long>GStreamer can put visualization plugins in a pipeline to transform audio stream in video frames. Default is goom but more visualization plugins will be ported soon. The visualization plugin can be a partial pipeline instead of just one element.</long>
