I think I am on the right track, but I have a funny feeling that this isn't being specific enough.
It's simply saying, if card spanning, use this filename instead. Rather then, use this filename for spanned files.
diff -r f3b2d51d430c modules/mlv_rec/mlv_rec.c
--- a/modules/mlv_rec/mlv_rec.c Wed May 28 17:50:04 2014 +0300
+++ b/modules/mlv_rec/mlv_rec.c Wed May 28 19:47:58 2014 +0300
@@ -2150,6 +2150,11 @@
* last field gets incremented if there's another video with the same name
*/
snprintf(videoname, sizeof(videoname), "M%02d-%02d%02d", now.tm_mday, now.tm_hour, COERCE(now.tm_min + number, 0, 99));
+
+ else if(card_spanning)
+ {
+ snprintf(videoname, sizeof(videoname), "S%02d-%02d%02d", now.tm_mday, now.tm_hour, COERCE(now.tm_min + number, 0, 99));
+ }
if(create_dirs)
{
What about this?
--- a/modules/mlv_rec/mlv_rec.c Wed May 28 17:50:04 2014 +0300
+++ b/modules/mlv_rec/mlv_rec.c Wed May 28 19:47:58 2014 +0300
@@ -2150,6 +2150,11 @@
* last field gets incremented if there's another video with the same name
*/
snprintf(videoname, sizeof(videoname), "M%02d-%02d%02d", now.tm_mday, now.tm_hour, COERCE(now.tm_min + number, 0, 99));
+
+ else if(writer == 1)
+ {
+ snprintf(videoname, sizeof(videoname), "S%02d-%02d%02d", now.tm_mday, now.tm_hour, COERCE(now.tm_min + number, 0, 99));
+ }
if(create_dirs)
{
edit: nope, the bottom example doesn't compile, and I need to remove the else.