fix pitch_detector: recording will stop itself if the callback returns <0
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 21:32:06 +0000 (13 21:32 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 21:32:06 +0000 (13 21:32 +0000)
stopping recording 2 times might have harmful effects

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26002 a1c6a512-1295-4272-9138-f99709370657

apps/plugins/pitch_detector.c

index de0aff9..a394450 100644 (file)
@@ -980,7 +980,6 @@ int recording_callback(int status)
 {
     (void) status;
     
-    rb->pcm_stop_recording();
     recording=0;
     return -1;  
 }