1. 26 Aug, 2008 5 commits
    • Max Kellermann's avatar
      merged start, stop, seek into DecoderControl.command · 8d3942e0
      Max Kellermann authored
      Much of the existing code queries all three variables sequentially.
      Since only one of them can be set at a time, this can be optimized and
      unified by merging all of them into one enum variable.  Later, the
      "command" checks can be expressed in a "switch" statement.
      8d3942e0
    • Max Kellermann's avatar
      don't set pc->errored_song in decodeStart() · 180d78a8
      Max Kellermann authored
      pc->errored_song is already set by decodeParent() in the player thread
      when we set dc->error; no need to set it in the decoder thread.
      180d78a8
    • Max Kellermann's avatar
      added dc.next_song, renamed pc.current_song · d507ff28
      Max Kellermann authored
      Since pc->current_song denotes the song which the decoder should use
      next, we should move it to DecoderControl.  This removes one internal
      PlayerControl struct access from the decoder code.
      
      Also add pc.next_song, which is manipulated by the playlist code, and
      gets copied to dc.next_song as soon as the decoder is started.
      d507ff28
    • Max Kellermann's avatar
      clean up CPP includes · b6909da7
      Max Kellermann authored
      Include only headers which are really required.  This speeds up
      compilation and helps detect cross-layer accesses.
      b6909da7
    • Max Kellermann's avatar
      enable -Wpointer-arith, -Wstrict-prototypes · a383f451
      Max Kellermann authored
      Also enable -Wunused-parameter - this forces us to add the gcc
      "unused" attribute to a lot of parameters (mostly library callback
      functions), but it's worth it during code refactorizations.
      a383f451
  2. 25 Aug, 2008 3 commits
  3. 16 Aug, 2008 1 commit
  4. 30 Jun, 2008 14 commits
  5. 16 Jun, 2008 1 commit
  6. 13 Jun, 2008 2 commits
  7. 02 Jun, 2008 2 commits
  8. 01 Jun, 2008 6 commits
  9. 17 Apr, 2008 1 commit
    • Max Kellermann's avatar
      fix race condition in main_notify.c · 3c3620b3
      Max Kellermann authored
      The function wait_main_task() is racy: if the function
      wakeup_via_cond() sees the mutex is locked just before
      wait_main_task() executes pthread_cond_wait(), the main thread blocks
      forever.
      
      Work around this issue by adding a "pending" flag just like in my
      notify.c code.  A standards-compliant solution should be implemented
      later.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7365 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      3c3620b3
  10. 15 Apr, 2008 5 commits