summaryrefslogtreecommitdiff
path: root/libavdevice/dshow_pin.c
Commit message (Collapse)AuthorAge
* avdevice/dshow: fix crash on x86Diederick Niehorster2022-01-04
| | | | | | | | | | | fix regression introduced in 911ba8417e8881a7380842e69e11ca05fdc46575. Removal of WINAPI decoration from function signatures caused crashed when using dshow on x86. Fixes #9568 Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* avdevice/dshow: handle unknown sample timeDiederick Niehorster2021-12-24
| | | | | | | | | | | | | GetTime may return an error indication that the sample has not timestamps, or may return a NULL start time. In those cases, fall back to graph time. Emit log when that happens. Improve logging in the frame receive function: now logged against correct avclass instead of NULL. Better debug message in case sample dropped: could now be audio or video frame. Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* avdevice/dshow: query graph and sample time only onceDiederick Niehorster2021-12-24
| | | | | | | | No need to query twice, use value we've already unconditionally got. Improve variable names Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* avdevice/dshow: implement option to use device video timestampsDiederick Niehorster2021-12-24
| | | | | | | | | | | | | | | | | | | | | The dshow avdevice ignores timestamps for video frames provided by the DirectShow device, instead using wallclock time, apparently because the implementer of this code had a device that provided unreliable timestamps. Me (and others) would like to use the device's timestamps. The new use_video_device_timestamps option for dshow device enables them to do so. Since the majority of video devices out there probably provide fine timestamps, this patch sets the default to using the device timestamps, which means best fidelity timestamps are used by default. Using the new option, the user can switch this off and revert to the old behavior, so a fall back remains available in case the device provides broken timestamps. add use_video_device_timestamps to docs. Closes: #8620 Signed-off-by: Diederick Niehorster <dcnieho@gmail.com> Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
* avdevice/dshow: Add namespace prefix to the remaining global symbolsJames Almer2021-01-25
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/dshow: Fixed some minor memory leaksOliver Collyer2019-01-03
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* dshow: show more debug timestamp inforogerdpack2015-07-31
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: tweak loggingrogerdpack2015-01-26
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: drop initial audio packets with weird timestampsrogerdpack2015-01-23
| | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
* dshow: show device name when outputting buffer overflow log messagerogerdpack2014-03-28
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow_pin: dont return a value from a void functionMichael Niedermayer2013-03-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: Use NO_DSHOW_STRSAFE for all dshow header inclusionsAlexander Strasser2012-11-16
| | | | | | | | | | | | Move the NO_DSHOW_STRSAFE macro definition in front of the dshow.h system header inclusion. This excludes the usage of the STRSAFE functions consistently. Further background on this can be found in the commit message of revision 05ee0db1 where the #define was initially introduced. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* dshow: Change WINBOOL to BOOLDerek Buitenhuis2012-09-07
| | | | | | | | WINBOOL is MinGW-specific, and since both MSVC and MinGW have BOOL, use that instead. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: rename dshow.h to avoid conflict with system header of equal nameKyle2012-05-24
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow_filter: fix compilation with mingw-w64Rafaël Carré2012-02-16
| | | | | | | | | | Closes ticket #999 NO_DSHOW_STRSAFE asks dshow.h header to not use secure string function replacements. Using secure replacements would break mingw.org compatibility as they don't declare/define those functions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dshow: release pin on disconnectRamiro Polla2011-09-16
| | | | Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* DirectShow capture supportRamiro Polla2011-05-21
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>