summaryrefslogtreecommitdiff
path: root/rMD-exp/src/capture_sound.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-10-23 17:12:07 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-10-23 17:12:07 +0000
commitffe69a6240de9e6bb56b9b729b8133fb323cee80 (patch)
tree0e15912d318c516fb7b61aa04a77a055784afbb0 /rMD-exp/src/capture_sound.c
parent21f5377d66e8c8166e2b061d46a438cdb3ca45a5 (diff)
no hang on open device patch
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@113 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/capture_sound.c')
-rw-r--r--rMD-exp/src/capture_sound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rMD-exp/src/capture_sound.c b/rMD-exp/src/capture_sound.c
index f28ba26..3bda596 100644
--- a/rMD-exp/src/capture_sound.c
+++ b/rMD-exp/src/capture_sound.c
@@ -57,7 +57,9 @@ void *CaptureSound(void *pdata){
NULL//let's hope that the device capabilities didn't magically change
);
if(((ProgData *)pdata)->sound_handle==NULL){
- fprintf(stderr,"Couldn't reopen sound device.\nThere will be no sound data from this point on.\n");
+ fprintf(stderr,"Couldn't reopen sound device.Exiting\n");
+ ((ProgData *)pdata)->running=0;
+ errno=3;
pthread_exit(&errno);
}
}
© All Rights Reserved