diff --git a/ChangeLog b/ChangeLog index fc81b697b5..9c429c2f8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-11-25 Ronald S. Bultje + + * configure.ac: + * gst/playback/gstplaybasebin.c: (gst_play_base_bin_add_element): + * gst/typefind/gsttypefindfunctions.c: (mp3_type_find): + Remove hacks for older core. Require newer core version + accordingly. + 2004-11-25 Ronald S. Bultje * gst/cdxaparse/Makefile.am: diff --git a/configure.ac b/configure.ac index 17333394e8..025b85a789 100644 --- a/configure.ac +++ b/configure.ac @@ -180,7 +180,7 @@ GST_CHECK_FEATURE(GCONF, [GConf libraries], , [ dnl check for gstreamer dnl uninstalled is selected preferentially -- see pkg-config(1) -GST_REQ=0.8.4 +GST_REQ=0.8.7.1 PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, HAVE_GST="yes", HAVE_GST="no") diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 82dd296772..f5c86faa22 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -1174,9 +1174,6 @@ gst_play_base_bin_add_element (GstBin * bin, GstElement * element) play_base_bin = GST_PLAY_BASE_BIN (bin); if (play_base_bin->thread) { - GstScheduler *sched; - GstClock *clock; - if (play_base_bin->threaded) { gchar *name; GstElement *thread; @@ -1189,16 +1186,6 @@ gst_play_base_bin_add_element (GstBin * bin, GstElement * element) element = thread; } gst_bin_add (GST_BIN (play_base_bin->thread), element); - - /* hack, the clock is not correctly distributed in the core */ - sched = gst_element_get_scheduler (GST_ELEMENT (play_base_bin->thread)); - clock = gst_scheduler_get_clock (sched); - gst_scheduler_set_clock (sched, clock); - - /* FIXME set element to READY so that negotiation can happen. This - * currently fails because of weird negotiation problems. */ - //gst_element_set_state (element, GST_STATE_PLAYING); - } else { g_warning ("adding elements is not allowed in NULL"); } diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index bd5fbb219b..35c638024f 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -369,14 +369,14 @@ static GstStaticCaps mp3_caps = GST_STATIC_CAPS ("audio/mpeg, " static void mp3_type_find (GstTypeFind * tf, gpointer unused) { - /*guint64 length = gst_type_find_get_length (tf); */ + guint64 length = gst_type_find_get_length (tf); gint try; guint8 *data = NULL; guint size; guint64 skipped; - for (try = 0; try < 1 /* 2 */ ; try++) { - guint64 start_off = 0; /*(try == 0) ? 0 : length / 2; */ + for (try = 0; try < 2; try++) { + guint64 start_off = (try == 0) ? 0 : length / 2; if (try != 0 && start_off == 0) return;