Группа :: Звук
Пакет: tutka
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: tutka-remove-deprecated-funcs.patch
Скачать
Скачать
diff --git a/tutka/src/editor.c b/tutka/src/editor.c
index 691f308..77faa54 100644
--- a/tutka/src/editor.c
+++ b/tutka/src/editor.c
@@ -45,7 +45,6 @@ struct editor *editor_open()
/* Get a pointer to the main thread and lower priority to give time to the player */
editor->thread = g_thread_self();
- g_thread_set_priority(editor->thread, G_THREAD_PRIORITY_LOW);
/* Create a mutex for locking the song */
editor->songmutex = g_mutex_new();
diff --git a/tutka/src/player.c b/tutka/src/player.c
index e0b2b23..c35d7c2 100644
--- a/tutka/src/player.c
+++ b/tutka/src/player.c
@@ -932,7 +932,7 @@ void player_start(struct player *player, unsigned int mode, int section, int pos
/* For some reason the priority setting crashes with realtime Jack */
if (player->sched != SCHED_EXTERNAL_SYNC) {
if (player->editor == NULL || editor_player_get_external_sync(player->editor) != EXTERNAL_SYNC_JACK_START_ONLY)
- g_thread_set_priority(player->thread, G_THREAD_PRIORITY_URGENT);
+ ;//g_thread_set_priority(player->thread, G_THREAD_PRIORITY_URGENT);
}
}
}
diff --git a/tutka/src/main.c b/tutka/src/main.c
index 567ffd1..67242fd 100644
--- a/tutka/src/main.c
+++ b/tutka/src/main.c
@@ -40,14 +40,6 @@ int main(int argc, char *argv[])
struct editor *editor = NULL;
const struct timespec nobusywait = { 0, 40000 };
- if (!g_thread_supported()) {
- g_thread_init(NULL);
- gdk_threads_init();
- } else {
- fprintf(stderr, "No threads implementation. Tutka requires threads.\n");
- return -1;
- }
-
gnome_init("Tutka", VERSION, argc, argv);
glade_gnome_init();
diff --git a/tutka/src/tutkaplayer.c b/tutka/src/tutkaplayer.c
index aedee96..b485dfe 100644
--- a/tutka/src/tutkaplayer.c
+++ b/tutka/src/tutkaplayer.c
@@ -147,15 +147,6 @@ int main(int argc, char *argv[])
exit(1);
}
- /* Threads are needed */
- if (!g_thread_supported()) {
- g_thread_init(NULL);
- gdk_threads_init();
- } else {
- fprintf(stderr, "No threads implementation. Tutka requires threads.\n");
- return -1;
- }
-
/* Trap CTRL-C */
signal(SIGINT, stop);