From: Josep Torra Date: Wed, 22 Apr 2015 15:04:25 +0000 (+0200) Subject: decklink: do not repeat first video format in caps template X-Git-Tag: 1.19.3~507^2~8930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b70b848ee215d81c7aa66c10209c3e6996a6f50;p=platform%2Fupstream%2Fgstreamer.git decklink: do not repeat first video format in caps template The first entry in the modes array is used as default mode for autodetection. There's no need to copy it into the caps template. --- diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 7335ab3..a5ccc22 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -350,7 +350,7 @@ gst_decklink_mode_get_template_caps (void) GstStructure *s; caps = gst_caps_new_empty (); - for (i = 0; i < (int) G_N_ELEMENTS (modes); i++) { + for (i = 1; i < (int) G_N_ELEMENTS (modes); i++) { s = gst_decklink_mode_get_structure ((GstDecklinkModeEnum) i); gst_caps_append_structure (caps, s); }