1. Fix some print_msg to be print_err
2. Rename the function to make error messages go to stderr to
redirect_output_stderr, which is more sensible.
3. Make the -stdout switch always force error messages to stderr
4. Add the "-err" switch to all programs, which allows the user
to choose whether they prefer errors to go to stdout or stderr
That last is something I meant to do as part of the stdout/stderr
changes - thanks again to alexw for causing me to get round to it.
This now allows:
cat data/ed24p_11.ts | ts2ps -stdin -stdout | ps2ts -stdin -stdout | mplayer -
to work -- it didn't before.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40145
Now the warning messages '[Duplicate error]' and '[Discontinuity]' are printed in the file for any error found in the PID
and not only for the first one.
I have also removed some comments left over from previous a previous commit.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40144
to explain why, now I've looked back at the ts.c code and seen what
it actually does.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40135
are actually used for, and why (before it was definitely confusing).
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40133
revert to the monolithic Pyrex file, although (for the moment at
least) still with two .pxd files to abstract some wrapping of
definitions and functions.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40122
make the new printing mechanism simpler, by having functions
with void returns.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40118
per-tsreader), rather than static as it was before. This is a tentative commit,
subject to further testing, although the Python code's doctests appear to
indicate that it is probably working.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40114
common.pxd, ready for when we have more than one .pyx file. Fiddle with
the rest.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40110
in it, but eventually to allow for multiple files).
--HG--
rename : python/tstools.pyx => python/tstools/tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40109
compiler warnings for the "const void*" argument to PyObject_AsReadBuffer.
Unfortunately, it doesn't look like I can do anything about the "internal
linenumber variable might be used uninitialised" which the building of the
(generated) tstools.c gives.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40106
Python methods in extension types *can* call cdef methods, so make the
cdef functions I was using, because I hadn't figured this out, be cdef
methods instead. This (a) makes the code simpler/nicer, and (b) will make
it easier to accumulate PAT (and later PMT) over repeated calls of the
(now a) method that reads the next TS packet.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4097