diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2013-06-27 12:25:44 +0300 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-06-27 14:01:26 +0200 |
commit | 769f33cab29ab298a90b39257ca9dbbca26e1498 (patch) | |
tree | c7e127ad0bedf601a28be758ff43b75e3aeaf9cc | |
parent | ece5cb2d83d41fdecef4bbda874208b2089fb33a (diff) |
vaapisink: expose the raw video formats in static caps template.
Expose all raw video formats in the static caps template since the
vaapisink is supporting raw data. We will get the exact set of formats
supported by the driver dynamically through the _get_caps() routine.
This also fixes an inconsistency wrt. GStreamer 0.10 builds.
https://bugzilla.gnome.org/show_bug.cgi?id=702178
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
-rw-r--r-- | gst/vaapi/gstvaapisink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c index e53697be..4a8c7443 100644 --- a/gst/vaapi/gstvaapisink.c +++ b/gst/vaapi/gstvaapisink.c @@ -83,7 +83,9 @@ GST_DEBUG_CATEGORY_STATIC(gst_debug_vaapisink); /* Default template */ static const char gst_vaapisink_sink_caps_str[] = -#if !GST_CHECK_VERSION(1,0,0) +#if GST_CHECK_VERSION(1,0,0) + GST_VIDEO_CAPS_MAKE(GST_VIDEO_FORMATS_ALL) "; " +#else "video/x-raw-yuv, " "width = (int) [ 1, MAX ], " "height = (int) [ 1, MAX ]; " |