Fix to allow usage with gstreamer 0.8 From http://dev.gentoo.org/~squinky86/files/0.1.6-gstreamer.patch.bz2 diff -Naur tunesbrowser-0.1.6.vanilla/audioplayer.c tunesbrowser-0.1.6/audioplayer.c --- tunesbrowser-0.1.6.vanilla/audioplayer.c 2004-07-31 09:10:42.000000000 -0500 +++ tunesbrowser-0.1.6/audioplayer.c 2004-08-15 15:05:20.007122248 -0500 @@ -80,17 +80,28 @@ gst_init(0, NULL); pipeline_thread = gst_thread_new ("pipeline"); +#if (GST_VERSION_MINOR <= 6) gst_bin_set_post_iterate_function(GST_BIN(pipeline_thread), cb_iterate, NULL); +#else + g_signal_connect_after(G_OBJECT(pipeline_thread), "iterate", + G_CALLBACK(cb_iterate), + NULL); +#endif pipesrc = gst_element_factory_make ("fdsrc", "pipe_source"); if (!pipesrc) { fprintf(stderr, "Failed to load gstreamer source 'fdsrc'.\n"); goto gst_element_err; } - /*decoder = gst_element_factory_make ("spider", "decoder"); - * anyone know why this doesn't work? */ +#if (GST_VERSION_MINOR < 8) + /* older versions of gstreamer seem to crash when I use the + * spider plugin + */ decoder = gst_element_factory_make ("mad", "decoder"); +#else + decoder = gst_element_factory_make ("spider", "decoder"); +#endif if (!decoder) { fprintf(stderr, "Failed to load gstreamer filter 'mad' (for mp3 decoding)\n"); diff -Naur tunesbrowser-0.1.6.vanilla/configure tunesbrowser-0.1.6/configure --- tunesbrowser-0.1.6.vanilla/configure 2004-07-31 09:14:07.000000000 -0500 +++ tunesbrowser-0.1.6/configure 2004-08-01 08:25:41.000000000 -0500 @@ -19673,23 +19673,23 @@ else PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo "$as_me:$LINENO: checking for opendaap libglade-2.0 gstreamer-0.6" >&5 -echo $ECHO_N "checking for opendaap libglade-2.0 gstreamer-0.6... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for opendaap libglade-2.0 gstreamer-0.8" >&5 +echo $ECHO_N "checking for opendaap libglade-2.0 gstreamer-0.8... $ECHO_C" >&6 - if $PKG_CONFIG --exists "opendaap libglade-2.0 gstreamer-0.6" ; then + if $PKG_CONFIG --exists "opendaap libglade-2.0 gstreamer-0.8" ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 succeeded=yes echo "$as_me:$LINENO: checking TB_CFLAGS" >&5 echo $ECHO_N "checking TB_CFLAGS... $ECHO_C" >&6 - TB_CFLAGS=`$PKG_CONFIG --cflags "opendaap libglade-2.0 gstreamer-0.6"` + TB_CFLAGS=`$PKG_CONFIG --cflags "opendaap libglade-2.0 gstreamer-0.8"` echo "$as_me:$LINENO: result: $TB_CFLAGS" >&5 echo "${ECHO_T}$TB_CFLAGS" >&6 echo "$as_me:$LINENO: checking TB_LIBS" >&5 echo $ECHO_N "checking TB_LIBS... $ECHO_C" >&6 - TB_LIBS=`$PKG_CONFIG --libs "opendaap libglade-2.0 gstreamer-0.6"` + TB_LIBS=`$PKG_CONFIG --libs "opendaap libglade-2.0 gstreamer-0.8"` echo "$as_me:$LINENO: result: $TB_LIBS" >&5 echo "${ECHO_T}$TB_LIBS" >&6 else @@ -19697,7 +19697,7 @@ TB_LIBS="" ## If we have a custom action on failure, don't print errors, but ## do set a variable so people can do so. - TB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opendaap libglade-2.0 gstreamer-0.6"` + TB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opendaap libglade-2.0 gstreamer-0.8"` echo $TB_PKG_ERRORS fi @@ -19712,8 +19712,8 @@ if test $succeeded = yes; then : else - { { echo "$as_me:$LINENO: error: Library requirements (opendaap libglade-2.0 gstreamer-0.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 -echo "$as_me: error: Library requirements (opendaap libglade-2.0 gstreamer-0.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} + { { echo "$as_me:$LINENO: error: Library requirements (opendaap libglade-2.0 gstreamer-0.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 +echo "$as_me: error: Library requirements (opendaap libglade-2.0 gstreamer-0.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} { (exit 1); exit 1; }; } fi diff -Naur tunesbrowser-0.1.6.vanilla/configure.ac tunesbrowser-0.1.6/configure.ac --- tunesbrowser-0.1.6.vanilla/configure.ac 2004-07-31 09:14:00.000000000 -0500 +++ tunesbrowser-0.1.6/configure.ac 2004-08-15 15:05:20.008122096 -0500 @@ -19,7 +19,7 @@ AC_CHECK_FUNCS([memset strdup]) -PKG_CHECK_MODULES(TB, opendaap libglade-2.0 gstreamer-0.6) +PKG_CHECK_MODULES(TB, opendaap libglade-2.0 gstreamer-0.8) AC_SUBST(TB_CFLAGS) AC_SUBST(TB_LIBS)