diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2012-01-05 16:23:02 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2012-01-15 22:26:44 +0200 |
commit | 389ed6806fa03ba1d82cf37ac6493eb18c23fd8d (patch) | |
tree | 527b8764f785181a62903a0bce3bcf47855a23d1 | |
parent | 275a3984e94bbeb0d95c09cbfaa1ac05e6df6ead (diff) |
qtvideosink: Do not override the value of m_formatDirty if the format change has not been handled yet.
-rw-r--r-- | elements/gstqtvideosink/gstqtvideosinksurface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/elements/gstqtvideosink/gstqtvideosinksurface.cpp b/elements/gstqtvideosink/gstqtvideosinksurface.cpp index 4cd157e..deeecaa 100644 --- a/elements/gstqtvideosink/gstqtvideosinksurface.cpp +++ b/elements/gstqtvideosink/gstqtvideosinksurface.cpp @@ -429,7 +429,9 @@ bool GstQtVideoSinkSurface::event(QEvent *event) if (isActive()) { //schedule this frame for rendering m_buffer = bufEvent->buffer; - m_formatDirty = bufEvent->formatDirty; + if (bufEvent->formatDirty) { + m_formatDirty = true; + } g_signal_emit(m_sink, GstQtVideoSink::s_signals[GstQtVideoSink::UPDATE_SIGNAL], 0); } else { //not active, drop the frame |