ref: d1e15f69a0813f68fe0af4478fb59a5b32ce8921
parent: 44c69a9de9e43b10300cd04fc5308afa373bd305
author: ca5e <ca5e>
date: Wed Dec 17 13:41:56 EST 2003
Prevented tag editing on currently playing file
--- a/plugins/in_mp4/in_mp4.c
+++ b/plugins/in_mp4/in_mp4.c
@@ -22,7 +22,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
**
-** $Id: in_mp4.c,v 1.47 2003/11/21 17:08:27 ca5e Exp $
+** $Id: in_mp4.c,v 1.48 2003/12/17 18:41:56 ca5e Exp $
**/
//#define DEBUG_OUTPUT
@@ -862,6 +862,14 @@
return TRUE;
case IDOK:
+ /* trying to edit currently playing file */
+
+ if (!stricmp(info_fn, mp4state.filename))
+ {
+ MessageBox(module.hMainWindow, "Please stop playback before editing tags", "in_mp4", MB_ICONINFORMATION|MB_OK);
+ return TRUE;
+ }
+
/* save Metadata changes */
tag_delete(&tags);
@@ -1842,6 +1850,8 @@
module.outMod->Close();
module.SAVSADeInit();
+
+ mp4state.filename[0] = '\0';
}
int getsonglength(const char *fn)