Discussion:
detecting failed av_interleaved_write_frame()
Nathan Kurz
2004-10-07 14:17:44 UTC
Permalink
Is there a way to see if call to av_interleaved_write_frame()
succeeded? Right now, I'm writing raw DV frames to a pipe, and
finding that even if the write fails the return code is always
success. I'm writing from multithreaded program, and relying only on
SIGPIPE to detect the failed write would be difficult. Is there some
internal error flag I could check for? Or would it be possible for
the error to propagate up through url_write()?

Thanks!

Nathan Kurz
***@verse.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Michael Niedermayer
2004-10-08 20:10:37 UTC
Permalink
Hi
Post by Nathan Kurz
Is there a way to see if call to av_interleaved_write_frame()
succeeded? Right now, I'm writing raw DV frames to a pipe, and
finding that even if the write fails the return code is always
success. I'm writing from multithreaded program, and relying only on
fixed / untested

[...]
--
Michael

"I do not agree with what you have to say, but I'll defend to the death your
right to say it." -- Voltaire


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Nathan Kurz
2004-10-08 20:37:40 UTC
Permalink
Post by Michael Niedermayer
Hi
Post by Nathan Kurz
Is there a way to see if call to av_interleaved_write_frame()
succeeded? Right now, I'm writing raw DV frames to a pipe, and
finding that even if the write fails the return code is always
success. I'm writing from multithreaded program, and relying only on
fixed / untested
Michael! That's fantastic. I just got my multithreaded SIGPIPE
handling working, and although it works, it's a mess. I will test
this and submit test cases if anything isn't working.

--nate


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

Loading...