summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-06-21 17:34:23 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-06-21 17:34:23 +0000
commit436b928915f56a8bc56fc7065800fad7e474e158 (patch)
tree9d0680a8099f22e639058ce366e79032129f13f7 /src/xine-engine/video_out.c
parenta2c0482e17a5d1d0ea99d06b81e94c0e7b5cb4e2 (diff)
downloadxine-lib-436b928915f56a8bc56fc7065800fad7e474e158.tar.gz
xine-lib-436b928915f56a8bc56fc7065800fad7e474e158.tar.bz2
solaris and stability patches provided by Juergen Keil
CVS patchset: 211 CVS date: 2001/06/21 17:34:23
Diffstat (limited to 'src/xine-engine/video_out.c')
-rw-r--r--src/xine-engine/video_out.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 2c624b94d..b497799ce 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out.c,v 1.24 2001/06/18 15:43:01 richwareham Exp $
+ * $Id: video_out.c,v 1.25 2001/06/21 17:34:24 guenter Exp $
*
*/
@@ -130,9 +130,9 @@ static void vo_set_timer (uint32_t video_step) {
}
void video_timer_handler (int hubba) {
-
+#if !HAVE_SIGACTION
signal (SIGALRM, video_timer_handler);
-
+#endif
}
static void *video_out_loop (void *this_gen) {
@@ -152,7 +152,7 @@ static void *video_out_loop (void *this_gen) {
/*
sigemptyset(&vo_mask);
sigaddset(&vo_mask, SIGALRM);
- pthread_sigmask(SIG_BLOCK, &vo_mask, NULL);
+ pthread_sigmask(SIG_UNBLOCK, &vo_mask, NULL);
*/
@@ -161,9 +161,17 @@ static void *video_out_loop (void *this_gen) {
if (sigprocmask (SIG_UNBLOCK, &vo_mask, NULL)) {
printf ("video_out: sigprocmask failed.\n");
}
+#if HAVE_SIGACTION
+ {
+ struct sigaction sig_act;
+ memset (&sig_act, 0, sizeof(sig_act));
+ sig_act.sa_handler = video_timer_handler;
+ sigaction (SIGALRM, &sig_act, NULL);
+ }
+#else
signal (SIGALRM, video_timer_handler);
-
-
+#endif
+
video_step = this->metronom->get_video_rate (this->metronom);
/*