Mercurial > pidgin.yaz
comparison src/gtksound.c @ 13757:164932c4d050
[gaim-migrate @ 16168]
Remove the expire_old_child static function, since it's not used:
gtksound.c:344: warning: ¡Æexpire_old_child¡Ç defined but not used
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 10 May 2006 01:27:51 +0000 |
parents | 988186eb1688 |
children | ecfd8fb02c19 |
comparison
equal
deleted
inserted
replaced
13756:56fedad48814 | 13757:164932c4d050 |
---|---|
338 gaim_signals_disconnect_by_handle(gaim_gtk_sound_get_handle()); | 338 gaim_signals_disconnect_by_handle(gaim_gtk_sound_get_handle()); |
339 } | 339 } |
340 | 340 |
341 #ifdef USE_GSTREAMER | 341 #ifdef USE_GSTREAMER |
342 static gboolean | 342 static gboolean |
343 expire_old_child(gpointer data) | |
344 { | |
345 int ret; | |
346 pid_t pid = GPOINTER_TO_INT(data); | |
347 | |
348 ret = waitpid(pid, NULL, WNOHANG | WUNTRACED); | |
349 | |
350 if(ret == 0) { | |
351 if(kill(pid, SIGKILL) < 0) | |
352 gaim_debug_error("gtksound", "Killing process %d failed (%s)\n", | |
353 pid, strerror(errno)); | |
354 } | |
355 | |
356 return FALSE; /* do not run again */ | |
357 } | |
358 | |
359 static gboolean | |
360 bus_call (GstBus *bus, | 343 bus_call (GstBus *bus, |
361 GstMessage *msg, | 344 GstMessage *msg, |
362 gpointer data) | 345 gpointer data) |
363 { | 346 { |
364 GstElement *play = data; | 347 GstElement *play = data; |