Index: input/input.c
===================================================================
--- input/input.c	(r��vision 26190)
+++ input/input.c	(copie de travail)
@@ -64,6 +64,7 @@
   { MP_CMD_SPEED_MULT, "speed_mult", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } },
   { MP_CMD_SPEED_SET, "speed_set", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } },
   { MP_CMD_QUIT, "quit", 0, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
+  { MP_CMD_STOP, "stop", 0, { {-1,{0}} } },
   { MP_CMD_PAUSE, "pause", 0, { {-1,{0}} } },
   { MP_CMD_FRAME_STEP, "frame_step", 0, { {-1,{0}} } },
   { MP_CMD_PLAY_TREE_STEP, "pt_step",1, { { MP_CMD_ARG_INT ,{0}}, { MP_CMD_ARG_INT ,{0}}, {-1,{0}} } },
@@ -473,6 +474,7 @@
   { { '!', 0 }, "seek_chapter -1" },
   { { '@', 0 }, "seek_chapter 1" },
   { { 'A', 0 }, "switch_angle 1" },
+  { { 'U', 0 }, "stop" },
 
   { { 0 }, NULL }
 };
Index: input/input.h
===================================================================
--- input/input.h	(r��vision 26190)
+++ input/input.h	(copie de travail)
@@ -109,6 +109,7 @@
 #define MP_CMD_SWITCH_ANGLE 105
 #define MP_CMD_ASS_USE_MARGINS 106
 #define MP_CMD_SWITCH_TITLE 107
+#define MP_CMD_STOP 108
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001
Index: DOCS/tech/slave.txt
===================================================================
--- DOCS/tech/slave.txt	(r��vision 26190)
+++ DOCS/tech/slave.txt	(copie de travail)
@@ -266,6 +266,9 @@
     not given or zero. The direction is reversed if direction is less
     than zero.
 
+stop
+    Stop playback.
+
 sub_alignment [value]
     Toggle/set subtitle alignment.
         0 top alignment
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1	(r��vision 26190)
+++ DOCS/man/en/mplayer.1	(copie de travail)
@@ -232,6 +232,8 @@
 and then go into pause mode again (any other key unpauses).
 .IPs "q / ESC"
 Stop playing and quit.
+.IPs "U\ \ \ \ "
+Stop playing (and quit if \-idle is not used).
 .IPs "+ and \-"
 Adjust audio delay by +/\- 0.1 seconds.
 .IPs "/ and *"
Index: DOCS/man/fr/mplayer.1
===================================================================
--- DOCS/man/fr/mplayer.1	(r��vision 26190)
+++ DOCS/man/fr/mplayer.1	(copie de travail)
@@ -246,6 +246,8 @@
 pause).
 .IPs "q / ESC"
 Stoppe la lecture et quitte.
+.IPs "U\ \ \ \ "
+Stoppe la lecture (et quitte si \-idle n'est pas utilis�).
 .IPs "+ et \-"
 Ajuste le d�calage audio de +/\- 0.1 secondes.
 .IPs "/ et *"
Index: mplayer.c
===================================================================
--- mplayer.c	(r��vision 26190)
+++ mplayer.c	(copie de travail)
@@ -3974,6 +3974,9 @@
       mpctx->playtree_iter = NULL;
     }
    }
+} else if (mpctx->eof == PT_STOP) {
+  play_tree_iter_free(mpctx->playtree_iter);
+  mpctx->playtree_iter = NULL;
 } else { // NEXT PREV SRC
      mpctx->eof = mpctx->eof == PT_PREV_SRC ? -1 : 1;
 }
Index: mp_core.h
===================================================================
--- mp_core.h	(r��vision 26190)
+++ mp_core.h	(copie de travail)
@@ -39,6 +39,7 @@
 #define PT_PREV_SRC -2
 #define PT_UP_NEXT 3
 #define PT_UP_PREV -3
+#define PT_STOP 4
 
 
 typedef struct MPContext {
Index: command.c
===================================================================
--- command.c	(r��vision 26190)
+++ command.c	(copie de travail)
@@ -2622,6 +2622,11 @@
 	    }
 	    break;
 
+	case MP_CMD_STOP:
+	    mpctx->eof = PT_STOP;
+	    brk_cmd = 1;
+	    break;
+
 #ifdef USE_RADIO
 	case MP_CMD_RADIO_STEP_CHANNEL:
 	    if (mpctx->demuxer->stream->type == STREAMTYPE_RADIO) {
