Contacting a live stream, I found it very hard to check if the stream was opened, or that it failed.
From a program face that is. There are two ways to attack this problem


1. Create a new option to exit aviplay on failure
since I'm no c++ coder, I fail to be able to supply a patch
2. Make the log/error lines line buffered, so they can be monitored (followed), and add one extra
line to report the aviplay process ID, like this:


--8<---
--- player/main.cpp     2003-05-25 01:24:42.000000000 +0200
+++ player/main.cpp.new 2003-10-28 11:43:36.000000000 +0100
@@ -56,6 +56,8 @@ int main(int argc, char* argv[])
     char* subname = 0;
     AviPlayerInitParams apip;
     apip.x = apip.y = 0x7fffffff;
+    setvbuf (stdout, (char *)NULL, _IOLBF, 0);
+    fprintf (stdout, "<init> : PID = %d\n", getpid ());

     static const avm::Args::Option sizesubopts[] =
     {
-->8---

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to