GRIN SMASH PUNY CODE.

This commit is contained in:
grinvader
2005-03-17 21:39:17 +00:00
parent 3d3561b8cf
commit d953110fc5

View File

@@ -958,9 +958,12 @@ static size_t MovieSub_GetDuration()
static void MovieSub_ResetStream() static void MovieSub_ResetStream()
{ {
rewind(MovieSub.fp); if (MovieSub.fp)
MovieSub.message_start = 0; {
MovieSub.message_duration = 0; rewind(MovieSub.fp);
MovieSub.message_start = 0;
MovieSub.message_duration = 0;
}
} }
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
@@ -974,7 +977,6 @@ MovieProcessing
1 = movie playback in progress 1 = movie playback in progress
2 = movie recording in progress 2 = movie recording in progress
*/ */
@@ -987,7 +989,7 @@ void MovieInsertChapter()
{ {
case 1: // replaying - external case 1: // replaying - external
zmv_add_chapter(); zmv_add_chapter();
Msgptr = "INTERNAL CHAPTER ADDED."; Msgptr = "EXTERNAL CHAPTER ADDED.";
break; break;
case 2: // recording - internal case 2: // recording - internal
zmv_insert_chapter(); zmv_insert_chapter();
@@ -1002,31 +1004,37 @@ void MovieInsertChapter()
void MovieSeekAhead() void MovieSeekAhead()
{ {
if (MovieProcessing == 1) // replaying only - record can use ZMTs switch (MovieProcessing)
{ {
if (zmv_next_chapter()) case 1: // replay seeking ok
{ if (zmv_next_chapter()) { Msgptr = "NEXT CHAPTER LOADED."; }
Msgptr = "NEXT CHAPTER LOADED."; else { Msgptr = "NO CHAPTERS AHEAD."; }
} break;
else case 2: // record will use MZTs
{ Msgptr = "NO SEEKING DURING RECORD.";
Msgptr = "NO CHAPTERS AHEAD."; break;
} default:
Msgptr = "NO MOVIE PROCESSING.";
} }
else { Msgptr = "NO MOVIE PROCESSING."; }
MessageOn = MsgCount; MessageOn = MsgCount;
} }
void MovieSeekBehind() void MovieSeekBehind()
{ {
if (MovieProcessing == 1) // replaying only - record can use ZMTs switch (MovieProcessing)
{ {
zmv_prev_chapter(); case 1: // replay seeking ok
MovieSub_ResetStream(); zmv_prev_chapter();
Msgptr = "PREVIOUS CHAPTER LOADED."; MovieSub_ResetStream();
Msgptr = "PREVIOUS CHAPTER LOADED.";
break;
case 2: // record will use MZTs
Msgptr = "NO SEEKING DURING RECORD.";
break;
default:
Msgptr = "NO MOVIE PROCESSING.";
} }
else { Msgptr = "NO MOVIE PROCESSING."; }
MessageOn = MsgCount; MessageOn = MsgCount;
} }