diff --git a/autogen.sh b/autogen.sh index c0cd19e54c..fcf1ed50ad 100755 --- a/autogen.sh +++ b/autogen.sh @@ -56,7 +56,7 @@ autoheader_check || DIE=1 die_check $DIE # if no arguments specified then this will be printed -if test -z "$*"; then +if test -z "$*" && test -z "$NOCONFIGURE"; then echo "+ checking for autogen.sh options" echo " This autogen script will automatically run ./configure as:" echo " ./configure $CONFIGURE_DEF_OPT" diff --git a/configure.ac b/configure.ac index 378768b3de..b2bc5f8203 100644 --- a/configure.ac +++ b/configure.ac @@ -380,6 +380,8 @@ AC_CHECK_FUNCS([poll]) AC_CHECK_FUNCS([ppoll]) AC_CHECK_FUNCS([pselect]) +AC_CHECK_HEADERS([sys/poll.h]) + dnl **************************************** dnl *** GLib POLL* compatibility defines *** dnl **************************************** diff --git a/gst/gst-i18n-app.h b/gst/gst-i18n-app.h index 06339b8bbb..b579c9d7a1 100644 --- a/gst/gst-i18n-app.h +++ b/gst/gst-i18n-app.h @@ -25,6 +25,7 @@ #ifdef ENABLE_NLS +#include /* some people need it and some people don't */ #include "gettext.h" /* included with gettext distribution and copied */ /* we want to use shorthand _() for translating and N_() for marking */ diff --git a/gst/gst-i18n-lib.h b/gst/gst-i18n-lib.h index e4eb45ee74..1902196d68 100644 --- a/gst/gst-i18n-lib.h +++ b/gst/gst-i18n-lib.h @@ -29,6 +29,7 @@ #ifdef ENABLE_NLS +#include /* some people need it and some people don't */ #include "gettext.h" /* included with gettext distribution and copied */ /* we want to use shorthand _() for translating and N_() for marking */ diff --git a/gst/gst_private.h b/gst/gst_private.h index 6905406c7c..dd93110d3f 100644 --- a/gst/gst_private.h +++ b/gst/gst_private.h @@ -144,7 +144,7 @@ gint priv_gst_date_time_compare (gconstpointer dt1, gconstpointer dt2); #ifndef GST_DISABLE_REGISTRY /* Secret variable to initialise gst without registry cache */ -extern gboolean _gst_disable_registry_cache; +GST_EXPORT gboolean _gst_disable_registry_cache; #endif /* provide inline gst_g_value_get_foo_unchecked(), used in gststructure.c */ diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in index 7af2496c4b..31ea67479c 100644 --- a/gst/gstconfig.h.in +++ b/gst/gstconfig.h.in @@ -193,7 +193,11 @@ #endif #else /* not _MSC_VER */ #define GST_PLUGIN_EXPORT +#if (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) +#define GST_EXPORT extern __attribute__ ((visibility ("default"))) +#else #define GST_EXPORT extern #endif +#endif #endif /* __GST_CONFIG_H__ */ diff --git a/gst/gstpoll.c b/gst/gstpoll.c index fed594fc57..3125681d46 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -75,7 +75,12 @@ #define EINPROGRESS WSAEINPROGRESS #else #define _GNU_SOURCE 1 +#ifdef HAVE_SYS_POLL_H #include +#endif +#ifdef HAVE_POLL_H +#include +#endif #include #include #endif diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 53a878495c..1afdfd9970 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -2236,8 +2236,7 @@ gst_base_sink_wait_eos (GstBaseSink * sink, GstClockTime time, GST_DEBUG_OBJECT (sink, "possibly waiting for clock to reach %" GST_TIME_FORMAT, GST_TIME_ARGS (time)); - /* compensate for latency and ts_offset. We don't adjust for render delay - * because we don't interact with the device on EOS normally. */ + /* compensate for latency, ts_offset and render delay */ stime = gst_base_sink_adjust_time (sink, time); /* wait for the clock, this can be interrupted because we got shut down or @@ -2387,14 +2386,6 @@ again: /* adjust for latency */ stime = gst_base_sink_adjust_time (basesink, rstart); - /* adjust for render-delay, avoid underflows */ - if (GST_CLOCK_TIME_IS_VALID (stime)) { - if (stime > priv->render_delay) - stime -= priv->render_delay; - else - stime = 0; - } - /* preroll done, we can sync since we are in PLAYING now. */ GST_DEBUG_OBJECT (basesink, "possibly waiting for clock to reach %" GST_TIME_FORMAT ", adjusted %" GST_TIME_FORMAT, diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index f059ee0499..0ca9115b11 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -629,7 +629,7 @@ gst_fd_src_uri_set_uri (GstURIHandler * handler, const gchar * uri, gchar *protocol, *q; GstFdSrc *src = GST_FD_SRC (handler); gint fd; - guint64 size = -1; + guint64 size = (guint64) - 1; GST_INFO_OBJECT (src, "checking uri %s", uri); diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c index 89dc92de41..17a0bfc519 100644 --- a/plugins/elements/gstinputselector.c +++ b/plugins/elements/gstinputselector.c @@ -523,7 +523,7 @@ gst_input_selector_wait_running_time (GstInputSelector * sel, GstPad *active_sinkpad; GstSelectorPad *active_selpad; GstSegment *seg, *active_seg; - GstClockTime running_time, active_running_time = -1; + GstClockTime running_time, active_running_time = GST_CLOCK_TIME_NONE; seg = &pad->segment;