1. 16 Dec, 2014 3 commits
    • Sebastian Rasmussen's avatar
      check: Have autotools generate internal-check.h · 0b09573b
      Sebastian Rasmussen authored
      Previously GStreamer got access to the libcheck interface by including
      libs/gst/check/check.h which in turn included internal-check.h in the
      same directory. internal-check.h was generated by copying
      libs/gst/check/libcheck/check.h which in turn was generated from
      check.h.in in the same directory. In this case generating
      libs/gst/check/libcheck/check.h is unnecessary, in addition this file
      was accidentally distributed in generated project tarballs.
      
      Now libs/gst/check/internal-check.h is generated directly from
      libs/gst/check/libcheck/check.h.in by configure. This means that the
      libcheck source must include internal-check.h instead of the previously
      generated libs/gst/check/libcheck/check.h. However the unnecessary
      intermediate step is now skipped.
      
      Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741359
      0b09573b
    • Nicolas Dufresne's avatar
      bufferpool: Don't check size in config validation · a8d66530
      Nicolas Dufresne authored
      Pools are allowed to change the size in order to adapt padding. So
      don't check the size. Normally pool will change the size without
      failing set_config(), but it they endup changing the size before
      the validate method may fail on a false positive.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=741420
      a8d66530
    • Wim Taymans's avatar
      bufferpool: log reason for discarded buffers · 6f136b53
      Wim Taymans authored
      PERFORMANCE log the reason why a buffer could not be recycled in the
      bufferpool.
      6f136b53
  2. 15 Dec, 2014 1 commit
  3. 12 Dec, 2014 6 commits
  4. 10 Dec, 2014 2 commits
  5. 07 Dec, 2014 1 commit
    • Sebastian Rasmussen's avatar
      check: Avoid requring (u)intmax_t in macros · 1cf733f2
      Sebastian Rasmussen authored
      Previously embedded libcheck versions did not depend on (u)intmax_t and
      doing so would require projects using GStreamer's check framework to add
      AX_CREATE_STDINT_H to their configure.ac. A workaround is to fallback to
      glib types. This patch assumes that glib.h is always included before
      internal-check.h which is ok since everything Gstreamer would include
      gst/gstcheck.h instead of directly including internal-check.h.
      
      Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
      1cf733f2
  6. 06 Dec, 2014 3 commits
    • Sebastian Rasmussen's avatar
      check: Fix compilation error for iOS · fb6ea425
      Sebastian Rasmussen authored
      libcheck includes CoreServices for its compat for clock_gettime(),
      even though it never uses anything it declares. Let's remove it.
      
      Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
      fb6ea425
    • Sebastian Rasmussen's avatar
      check: Apply GStreamer-specific patches · 85c8b5d2
      Sebastian Rasmussen authored
      Reintroduced patches:
      
       * Make sure that fail_if(1) actually fails
         from commit 9f99d056
      
      New patches due to updated libcheck (based on 0.9.14):
      
       * Checks in m4/check-checks.m4 to cater for new dependencies
       * Conditional compile-time compat POSIX fallbacks for libcheck
       * Avoid relative paths for libcheck header files
       * Make timer_create() usage depend on posix timers, not librt
       * Rely on default AX_PTHREAD behavior to allow HAVE_PTHREAD to be used
         when checking for types and functions (like clock_gettime())
       * Avoid double declaration of clock_gettime() when availabe outside of
         librt by making compat clock_gettime() declaration conditional
       * check 0.9.9 renamed _fail_unless() and 0.9.12 later renamed it again
         to _ck_assert_failed(), so ASSERT_{CRITICAL,WARNING}() now calls this
         function
       * Remove libcheck fallback infrastructure for malloc(), realloc(),
         gettimeofday() and snprintf() since either they appear to be
         available or they introduce even more dependencies.
      
      The result is an embedded check in gstreamer that has been tested by
      running check tests in core, -base, -good, -bad, -ugly and rtsp-server
      on Linux, OSX and Windows.
      
      Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
      85c8b5d2
    • Sebastian Rasmussen's avatar
      check: Import version 0.9.14 · f1df7aba
      Sebastian Rasmussen authored
      This lifts the files almost verbatim (the changes being running though
      gst-indent and fixing the FSF address) from the upstream respository.
      Therefore this commit reverts some GStreamer-specific patches to check
      that will be reintroduced next.
      
      Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
      f1df7aba
  7. 01 Dec, 2014 3 commits
  8. 30 Nov, 2014 6 commits
  9. 28 Nov, 2014 3 commits
  10. 27 Nov, 2014 2 commits
  11. 26 Nov, 2014 2 commits
  12. 25 Nov, 2014 2 commits
  13. 23 Nov, 2014 2 commits
    • Thiago Santos's avatar
      queue2: percentage is relative to high-percent · 8d835ec4
      Thiago Santos authored
      When comparing percentage values, compare with 0-100 scale as it
      has already been made relative to 0-high_percent, otherwise we mark
      the queue as not buffering and report a 50% to the user. This leads to
      a buffering stall as the user assumes the queue is still buffering but
      it thinks it isn't.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=736969
      8d835ec4
    • Thiago Santos's avatar
      multiqueue: percentage is an absolute value · 5a759011
      Thiago Santos authored
      multiqueue's queues stored percent value is the percentage from 0
      to 100 (max-size-*) and should be compared with the requested limit
      (high_percentage) set by the user and not with 100% to check if
      buffering should stop. Otherwise we are only stopping buffering when the
      queue gets completely full.
      5a759011
  14. 20 Nov, 2014 3 commits
  15. 12 Nov, 2014 1 commit
    • Vincent Penquerc'h's avatar
      pad: fail dropped queries · d4c551a2
      Vincent Penquerc'h authored
      Previously, dropping a query from a pad probe would deem the
      query succeeded, and the caller might then assume the query's
      results are valid, and thus dereference an invalid object
      such as a GstCaps.
      
      We now assume dropped queries did not succeed. Dropped events
      and buffers are still deemed a success.
      
      Added back after previous revert, as it's been double checked.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=740003
      d4c551a2