summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-30 16:47:57 +0100
committerJohns <johns98@gmx.net>2011-12-30 16:47:57 +0100
commit12bfab3f10ad4c1de6c650e9d1fdecd906683821 (patch)
tree0c9a814587b29189ccb01a5fc0e16b452a11ce6a
parentbded2ae5dfa5e8b79c900699c6b6e87b784b71ed (diff)
downloadvdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.gz
vdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.bz2
Name threads for easier debugging.
-rw-r--r--Todo2
-rw-r--r--audio.c2
-rw-r--r--video.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/Todo b/Todo
index 8b7ea29..83ce02f 100644
--- a/Todo
+++ b/Todo
@@ -7,6 +7,8 @@ missing:
atmolight
zoom/fit-zoom 4:3
multistream handling
+ audio out with oss/oss4
+ HDMI/SPDIF Passthrough
vdpau:
1080i with temporal spatial too slow GT 520
diff --git a/audio.c b/audio.c
index 472499a..fdbb792 100644
--- a/audio.c
+++ b/audio.c
@@ -445,7 +445,9 @@ static void AudioInitThread(void)
pthread_mutex_init(&AudioMutex, NULL);
pthread_cond_init(&AudioStartCond, NULL);
pthread_create(&AudioThread, NULL, AudioPlayHandlerThread, NULL);
+ pthread_setname_np(AudioThread, "softhddev audio");
//pthread_detach(AudioThread);
+ // wait until thread has opened and is ready
do {
pthread_yield();
} while (!AlsaPCMHandle);
diff --git a/video.c b/video.c
index b7c80c2..f2f1b06 100644
--- a/video.c
+++ b/video.c
@@ -5709,6 +5709,7 @@ void VideoDisplayHandler(void)
pthread_mutex_init(&VideoLockMutex, NULL);
pthread_cond_init(&VideoWakeupCond, NULL);
pthread_create(&VideoThread, NULL, VideoDisplayHandlerThread, NULL);
+ pthread_setname_np(VideoThread, "softhddev video");
//pthread_detach(VideoThread);
}
}