Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Friday, February 29th, 2008 at 4:05:32pm UTC 

  1. Index: apps/playback.c
  2. ===================================================================
  3. --- apps/playback.c     (revision 16454)
  4. +++ apps/playback.c     (working copy)
  5. @@ -222,10 +222,6 @@
  6.  static struct track_info *prev_ti = NULL;  /* Pointer to the previously played
  7.                                                track */
  8.  
  9. -/* Set by buffering_audio_callback when the low buffer event is received, to
  10. -   avoid flodding the audio queue with fill_file_buffer messages. */
  11. -static bool lowbuffer_event_sent = false;
  12. -
  13.  /* Set by the audio thread when the current track information has updated
  14.   * and the WPS may need to update its cached information */
  15.  static bool track_changed = false;
  16. @@ -1501,11 +1497,9 @@
  17.      switch (ev)
  18.      {
  19.          case EVENT_BUFFER_LOW:
  20. -            if (!lowbuffer_event_sent) {
  21. -                LOGFQUEUE("buffering > audio Q_AUDIO_FILL_BUFFER");
  22. -                queue_post(&audio_queue, Q_AUDIO_FILL_BUFFER, 0);
  23. -                lowbuffer_event_sent = true;
  24. -            }
  25. +            LOGFQUEUE("buffering > audio Q_AUDIO_FILL_BUFFER");
  26. +            queue_remove_from_head(&audio_queue, Q_AUDIO_FILL_BUFFER);
  27. +            queue_post(&audio_queue, Q_AUDIO_FILL_BUFFER, 0);
  28.              break;
  29.  
  30.          case EVENT_HANDLE_REBUFFER:
  31. @@ -1973,7 +1967,6 @@
  32.          track_changed = true;
  33.  
  34.      audio_generate_postbuffer_events();
  35. -    lowbuffer_event_sent = false;
  36.  }
  37.  
  38.  static void audio_rebuffer(void)

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right