pkgsrc/audio/xmms-meta-input/patches/patch-ab

53 lines
1.3 KiB
Text

$NetBSD: patch-ab,v 1.3 2005/01/29 14:07:24 ben Exp $
--- meta-input.c.orig 2002-05-02 08:29:12.000000000 -0700
+++ meta-input.c
@@ -53,7 +53,7 @@ static int is_our_file (char *filename);
static void *play_loop(void *arg);
static void play (char *filename);
static void stop (void);
-static void pause (short p);
+static void do_pause (short p);
static int get_time (void);
static void get_song_info (char *filename, char **title_real, int *len_real);
static void seek (int sec);
@@ -75,7 +75,7 @@ InputPlugin meta_input_ip =
NULL,
play,
stop,
- pause,
+ do_pause,
seek,
NULL,
get_time,
@@ -327,7 +327,7 @@ static void play (char *filename)
if (ret == 0) // Child process
{
// Set group ID for easy killing of the player later...
- setpgrp();
+ setpgrp(0, getpid());
close (filedes [0]);
close (0);
@@ -409,9 +409,10 @@ static void stop (void)
}
}
-static void pause (short p)
+static void do_pause (short p)
{
- meta_input_ip.output->pause (p);
+ /* for some reason this coredumps for me -Ben */
+ /* meta_input_ip.output->pause (p); */
}
static int get_time (void)
@@ -508,7 +509,7 @@ static char *magic_get (char *filename)
if (! inited)
{
inited = 1;
- ret = system ("file -i /dev/zero");
+ ret = system ("file -i /dev/zero >/dev/null");
if (ret == 0)
{
mime_supported = 1;