Commit 64dbc5eb authored by Linshizhi's avatar Linshizhi

implement eof().

parent d241f7d5
...@@ -189,6 +189,7 @@ int writeToOFormat() { ...@@ -189,6 +189,7 @@ int writeToOFormat() {
/* EOF */ /* EOF */
if (++finNum == numOfStreams) if (++finNum == numOfStreams)
goto FINISH; goto FINISH;
goto EXIT;
} }
streamWriteFrame(octx, pkt); streamWriteFrame(octx, pkt);
...@@ -240,6 +241,8 @@ EM_PORT_API(int) muxStep(void) { ...@@ -240,6 +241,8 @@ EM_PORT_API(int) muxStep(void) {
} }
EM_PORT_API(int) eof(int i) { EM_PORT_API(int) eof(int i) {
MMProto *p = listGet(protos, i);
mmpPush(p, NULL, 0);
return OK; return OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment