diff options
author | Diane Trout <diane@ghic.org> | 2014-01-12 16:58:26 -0800 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-04-27 19:51:05 +0200 |
commit | 8cabb7f2dd33748694b8c66f86b4bd8dbd277a6b (patch) | |
tree | 8ef70659d76bda99cca86830667cebe39fe71f10 /elements | |
parent | 4c41d92045b660bd08af857573e2565a9ca4521a (diff) |
elements/gstqtvideosink/gstqtvideosinkbase.cpp set buffer format from caps.
gstreamer will call set_caps to give the sink the current caps,
so we can save the format for the paint function.
Diffstat (limited to 'elements')
-rw-r--r-- | elements/gstqtvideosink/gstqtvideosinkbase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elements/gstqtvideosink/gstqtvideosinkbase.cpp b/elements/gstqtvideosink/gstqtvideosinkbase.cpp index e9b3558..fa13030 100644 --- a/elements/gstqtvideosink/gstqtvideosinkbase.cpp +++ b/elements/gstqtvideosink/gstqtvideosinkbase.cpp @@ -215,7 +215,8 @@ gboolean GstQtVideoSinkBase::set_caps(GstBaseSink *base, GstCaps *caps) GstQtVideoSinkBase *sink = GST_QT_VIDEO_SINK_BASE(base); GST_LOG_OBJECT(sink, "new caps %" GST_PTR_FORMAT, caps); - sink->formatDirty = true; + BufferFormat format = BufferFormat::fromCaps(caps); + sink->delegate->setBufferFormat(format); return TRUE; } |