Nije radilo baš iz prve, ali evo naterao sam ga da radi. Sad je sve ok. Napravio bih port, ali mnogo sporo to ide. Znači ovo je za FreeBSD-CURRENT.
Code:
--- playlist.h.orig Mon May 5 18:07:22 2003
+++ playlist.h Sun May 25 21:17:57 2003
@@ -20,6 +20,8 @@
#ifndef PLAYLIST_H
#define PLAYLIST_H
+#include <pthread.h>
+
typedef struct
{
gchar *filename;
--- config.c.orig Sun May 25 21:40:05 2003
+++ config.c Sun May 25 21:40:30 2003
@@ -184,10 +184,11 @@
xmmplayer_config.index == 2);
gtk_box_pack_start (GTK_BOX (mplayeropts_vbox), forceidx, FALSE, FALSE, 0);
- nortc = gtk_check_button_new_with_label ("Use the Linux RTC for timing");
+/* nortc = gtk_check_button_new_with_label ("Use the Linux RTC for timing");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (nortc),
!xmmplayer_config.nortc);
gtk_box_pack_start (GTK_BOX (mplayeropts_vbox), nortc, FALSE, FALSE, 0);
+*/
gtk_container_add (GTK_CONTAINER (mplayeropts_frame), mplayeropts_vbox);
gtk_box_pack_start (GTK_BOX (mplayer_vbox), mplayeropts_frame, TRUE, TRUE,
--- xmmplayer.c.orig Sun May 25 21:38:57 2003
+++ xmmplayer.c Sun May 25 21:55:35 2003
@@ -37,6 +37,8 @@
#include "playlist.h"
+#define POLL_IN 1
+
InputPlugin mplayer_plugin; /**< the plugin itself */
_xmmplayer_info xmmplayer_info;
_xmmplayer_config xmmplayer_config;
@@ -184,7 +186,7 @@
// Build argument list and pipe MPlayer
args = g_list_append (args, "-nocache");
- args = g_list_append (args, "-nortc");
+/* args = g_list_append (args, "-nortc"); */
args = g_list_append (args, "-identify");
args = g_list_append (args, url);
pid = pipe_mplayer (args, pipes);
@@ -378,8 +380,8 @@
if (xmmplayer_config.noninterleaved)
g_list_append (arglist, "-ni");
- if (xmmplayer_config.nortc)
- g_list_append (arglist, "-nortc");
+/* if (xmmplayer_config.nortc)
+ g_list_append (arglist, "-nortc"); */
if (xmmplayer_config.index == 1)
g_list_append (arglist, "-idx");
int rand(void);
Those who do not understand Unix are condemned to reinvent it, poorly.
Upali lampicu — koristi Jabber!