1. 23 Oct, 2008 3 commits
    • Max Kellermann's avatar
      command: added check_unsigned() / check_bool() · 95ae1d9e
      Max Kellermann authored
      Many command arguments must not be negative; add a separate
      parser/checker function for that.  For the same reason, add
      check_bool().  This eliminates two strange special cases handlers from
      check_int().
      95ae1d9e
    • Max Kellermann's avatar
      stored_playlist: unsigned index arguments · 39584572
      Max Kellermann authored
      Pass index arguments as unsigned integers.  They must not be negative,
      and even if some caller accidently passes -1, it won't pass the bound
      checks (since it's now 2**32-1).
      39584572
    • Max Kellermann's avatar
      playlist: unsigned integers · bc938603
      Max Kellermann authored
      There are some integers which have a "magic" -1 value which means
      "undefined" or "nothing".  All others can be converted to unsigned,
      since they must not contain a negative number.
      bc938603
  2. 22 Oct, 2008 18 commits
  3. 21 Oct, 2008 6 commits
    • Max Kellermann's avatar
      pcm_utils: added pcm_convert_init() · e6d90d4e
      Max Kellermann authored
      Instead of manually calling memset(0) on the pcm_convert_state struct,
      client code should use a library function from pcm_utils.c.  This way,
      we can change the semantics of the struct easily.
      e6d90d4e
    • Max Kellermann's avatar
      pcm_utils: no CamelCase · ca6e613a
      Max Kellermann authored
      Renamed all functions which were still in CamelCase.
      ca6e613a
    • Max Kellermann's avatar
      pcm_utils: renamed ConvState to struct pcm_convert_state · fb416964
      Max Kellermann authored
      No CamelCase, and a struct instead of a typedef.
      fb416964
    • Max Kellermann's avatar
      ffmpeg: don't pass pointer as hexadecimal string · a7888c49
      Max Kellermann authored
      Casting a pointer to some sort of integer and formatting it into a
      string isn't valid.  A pointer derived from this hex string won't work
      reliably.  Since ffmpeg doesn't provide a nice API for passing our
      pointer, we have to think of a different hack: ffmpeg passes the exact
      URL pointer to mpdurl_open(), and we can make this string part of a
      struct.  This reduces the problem to casting the string back to the
      struct.
      
      This is still a workaround, but this is "sort of portable", unless the
      ffmpeg people start messing with the URL pointer (which would be valid
      according to the API definition).
      a7888c49
    • Max Kellermann's avatar
      ffmpeg: link with libavutil · e4df17f6
      Max Kellermann authored
      Since ffmpeg svn r13528, you have to link with libavutil manually.
      e4df17f6
    • Max Kellermann's avatar
      ffmpeg: detect which ffmpeg headers should be included · def97411
      Max Kellermann authored
      Since ffmpeg svn r12865, you have to include libavcodec/avcodec.h
      instead of avcodec.h.  This cannot be checked at compile time, instead
      we have to add a check to configure.ac.  Viliam's original ffmpeg
      plugin was based on the newer ffmpeg library, while my Debian
      installation had the older version.  My attempt to correct his include
      statements wasn't correct after all.
      def97411
  4. 20 Oct, 2008 8 commits
  5. 18 Oct, 2008 5 commits