Commit a6808677 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

decklinksink: Initialize pixel format to bmdFormat8BitYUV

https://bugzilla.gnome.org/show_bug.cgi?id=725871
parent 41df512e
......@@ -533,9 +533,11 @@ gst_decklink_sink_videosink_event (GstPad * pad, GstObject * parent,
GST_DEBUG_OBJECT (pad, "event: %" GST_PTR_FORMAT, event);
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_CAPS:{
decklinksink->pixel_format = bmdFormat8BitYUV;
res = TRUE;
/* FIXME: this makes no sense, template caps don't contain v210 */
#if 0
case GST_EVENT_CAPS:{
GstCaps *caps;
gst_event_parse_caps (event, &caps);
......@@ -547,9 +549,9 @@ gst_decklink_sink_videosink_event (GstPad * pad, GstObject * parent,
decklinksink->pixel_format = bmdFormat8BitYUV;
}
}
#endif
break;
}
#endif
case GST_EVENT_EOS:
/* FIXME: EOS aggregation with audio pad looks wrong */
decklinksink->video_eos = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment