diff options
Diffstat (limited to 'omx/gstomxh263dec.c')
-rw-r--r-- | omx/gstomxh263dec.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/omx/gstomxh263dec.c b/omx/gstomxh263dec.c index 134995b..84d16ca 100644 --- a/omx/gstomxh263dec.c +++ b/omx/gstomxh263dec.c @@ -1,6 +1,7 @@ /* * Copyright (C) 2011, Hewlett-Packard Development Company, L.P. * Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd. + * Copyright (c) 2013 - 2014, NVIDIA CORPORATION. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -60,8 +61,7 @@ gst_omx_h263_dec_class_init (GstOMXH263DecClass * klass) videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_h263_dec_set_format); videodec_class->cdata.default_sink_template_caps = "video/x-h263, " - "variant=(string) itu, " - "parsed=(boolean) true, " "width=(int) [1,MAX], " "height=(int) [1,MAX]"; + "variant=(string) itu, " "width=(int) [1,MAX], " "height=(int) [1,MAX]"; gst_element_class_set_static_metadata (element_class, "OpenMAX H.263 Video Decoder", @@ -75,6 +75,17 @@ gst_omx_h263_dec_class_init (GstOMXH263DecClass * klass) static void gst_omx_h263_dec_init (GstOMXH263Dec * self) { + GstOMXVideoDec *dec = GST_OMX_VIDEO_DEC (self); + +#ifdef USE_OMX_TARGET_TEGRA + /* "use-omxdec-res" property of decoders is FALSE by default, i.e., resolution obtained + * from upstream component is used. In case of H263, h263parse sets incorrect resolution on src + * caps. Hence, use-omxdec-res property is set to TRUE to use resolution from decoder and not + * resolution obtained from upstream element. + * This is a work-around and the actual fix should go in open-source h263parse. + */ + dec->use_omxdec_res = TRUE; +#endif } static gboolean |