Index: apps/misc.c
===================================================================
RCS file: /cvsroot/rockbox/apps/misc.c,v
retrieving revision 1.55
diff -u -r1.55 misc.c
--- apps/misc.c	21 Feb 2006 01:23:29 -0000	1.55
+++ apps/misc.c	30 Mar 2006 16:00:17 -0000
@@ -506,6 +506,7 @@
 
 #ifdef HAVE_CHARGING
 static bool waiting_to_resume_play = false;
+static bool stay_paused = false;
 static long play_resume_tick;
 
 static void car_adapter_mode_processing(bool inserted)
@@ -517,7 +518,7 @@
             /*
              * Just got plugged in, delay & resume if we were playing
              */
-            if (audio_status() & AUDIO_STATUS_PAUSE)
+            if ((audio_status() & AUDIO_STATUS_PAUSE) && !stay_paused)
             {
                 /* delay resume a bit while the engine is cranking */
                 play_resume_tick = current_tick + HZ*5;
@@ -533,7 +534,12 @@
                 !(audio_status() & AUDIO_STATUS_PAUSE))
             {
                 audio_pause(); 
+		stay_paused = false;
             }
+	    else if (audio_status() & AUDIO_STATUS_PAUSE)
+	    {
+	      stay_paused = true;
+	    }
         }
     }
 }
