GRIN SMASH PUNY CODE.
This commit is contained in:
@@ -958,9 +958,12 @@ static size_t MovieSub_GetDuration()
|
|||||||
|
|
||||||
static void MovieSub_ResetStream()
|
static void MovieSub_ResetStream()
|
||||||
{
|
{
|
||||||
|
if (MovieSub.fp)
|
||||||
|
{
|
||||||
rewind(MovieSub.fp);
|
rewind(MovieSub.fp);
|
||||||
MovieSub.message_start = 0;
|
MovieSub.message_start = 0;
|
||||||
MovieSub.message_duration = 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;
|
||||||
|
case 2: // record will use MZTs
|
||||||
|
Msgptr = "NO SEEKING DURING RECORD.";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Msgptr = "NO MOVIE PROCESSING.";
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Msgptr = "NO CHAPTERS AHEAD.";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { Msgptr = "NO MOVIE PROCESSING."; }
|
|
||||||
|
|
||||||
MessageOn = MsgCount;
|
MessageOn = MsgCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MovieSeekBehind()
|
void MovieSeekBehind()
|
||||||
{
|
{
|
||||||
if (MovieProcessing == 1) // replaying only - record can use ZMTs
|
switch (MovieProcessing)
|
||||||
{
|
{
|
||||||
|
case 1: // replay seeking ok
|
||||||
zmv_prev_chapter();
|
zmv_prev_chapter();
|
||||||
MovieSub_ResetStream();
|
MovieSub_ResetStream();
|
||||||
Msgptr = "PREVIOUS CHAPTER LOADED.";
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user