summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapidecode.h
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2011-12-08 11:54:59 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-08 15:48:42 +0100
commit809e087cca77d5a233a622e92b3905c93728ca42 (patch)
tree4d5ac48eac007c22be1c45f90b29d05c9c13926b /gst/vaapi/gstvaapidecode.h
parentdc08d1eae08c7bfa3ab6c4b3a7770387d6058e0b (diff)
vaapidecode: return sink caps template if decoder is in NULL state.
Otherwise, the decoder would always create its own X display instead of probing it from the downstream element, which is not reliable. e.g. DISPLAY is not :0 or when running on Wayland. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst/vaapi/gstvaapidecode.h')
-rw-r--r--gst/vaapi/gstvaapidecode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h
index e2788a54..f288583f 100644
--- a/gst/vaapi/gstvaapidecode.h
+++ b/gst/vaapi/gstvaapidecode.h
@@ -72,6 +72,7 @@ struct _GstVaapiDecode {
GstCaps *decoder_caps;
GstCaps *allowed_caps;
unsigned int use_ffmpeg : 1;
+ unsigned int is_ready : 1;
};
struct _GstVaapiDecodeClass {