#include "ui.h"
#include "opts.h"
#include "timecode.h"
+#include "player.h"
static gboolean on_main_window_delete_event( GtkWidget *widget, GdkEvent *event, gpointer user_data )
{
pthread_mutex_init(&app->library.lock, &attr);
pthread_mutexattr_destroy(&attr);
-#if 0
- /* create a status thread */
+ /* run unit monitoring threads */
for(i = 0; i < app->players.count; i++)
- app->players.item[i].thread = g_thread_create(
- omnplay_thread_proc, &app->players.item[i], TRUE, NULL);
+ player_run(app, i);
+
+#if 0
/* attach buttons click */
for(i = 1; i < BUTTON_LAST; i++)
app->f_exit = 1;
+ /* stop unit monitoring threads */
for(i = 0; i < app->players.count; i++)
- /* create a omneon status thread */
- g_thread_join(app->players.item[i].thread);
+ player_stop(app, i);
/* destroy lock */
pthread_mutex_destroy(&app->players.lock);