From: <gk...@ke...> - 2011-01-19 23:14:03
|
Module: qt-gstreamer Branch: master Commit: e1838187cb3fef36e825f12e212f22e0a4d4eeb7 URL: http://cgit.freedesktop.org/gstreamer/qt-gstreamer/commit/?id=e1838187cb3fef36e825f12e212f22e0a4d4eeb7 Author: George Kiagiadakis <geo...@co...> Date: Thu Jan 20 01:03:46 2011 +0200 VideoWidget: add support for watching a pipeline and drop the broken support for autoplug elements. The previous support for autoplug elements was broken, as for example an autovideosink on a playbin2 does not create the child element on the main thread, which causes trouble for us. The new method of watching the pipeline will work nicely on most pipelines, like playbin2, and follows gstreamer's documentation to the letter, which guarantees it will work correctly, as long as there is only one sink on the pipeline. --- src/QGst/Ui/videowidget.cpp | 168 +++++++++++++++++++++--------- src/QGst/Ui/videowidget.h | 75 +++++++++++--- tests/manual/CMakeLists.txt | 3 + tests/manual/videowidgetpipelinetest.cpp | 72 +++++++++++++ tests/manual/videowidgetpipelinetest.ui | 42 ++++++++ tests/manual/videowidgettest.cpp | 2 +- 6 files changed, 298 insertions(+), 64 deletions(-) Diff: http://cgit.freedesktop.org/gstreamer/qt-gstreamer/diff/?id=e1838187cb3fef36e825f12e212f22e0a4d4eeb7 |