OSDN Git Service

Bump up the priority on the decoding thread.
authorFrançois Revol <revol@free.fr>
Tue, 12 Nov 2002 02:20:02 +0000 (02:20 +0000)
committerFrançois Revol <revol@free.fr>
Tue, 12 Nov 2002 02:20:02 +0000 (02:20 +0000)
Originally committed as revision 1201 to svn://svn.ffmpeg.org/ffmpeg/trunk

libav/beosaudio.cpp

index 9912370..a1ae0a5 100644 (file)
@@ -228,8 +228,7 @@ static int audio_open(AudioData *s, int is_output)
     s->player->Start();
     s->player->SetHasData(true);
     /* bump up the priority (avoid realtime though) */
-//    set_thread_priority(find_thread(NULL), B_URGENT_DISPLAY_PRIORITY+1);
-//    set_thread_priority(find_thread(NULL), B_LOW_PRIORITY);
+    set_thread_priority(find_thread(NULL), B_DISPLAY_PRIORITY+1);
     return 0;
 }