can not set flexible to property compliance of vah264dec

cfd new newcfd at yahoo.com
Wed May 10 18:35:50 UTC 2023


   GParamSpec * property_spec = g_object_class_find_property( G_OBJECT_GET_CLASS( decoder ), "compliance" );
  GType prop_type = G_PARAM_SPEC_VALUE_TYPE( property_spec );
  GValue value = { 0 };
  g_value_init( &value, prop_type );
  gst_value_deserialize( &value, "flexible" );  value has the correct index 3=flexible.
Butg_object_set( decoder, "compliance", value, nullptr );
crashes.

  Joe




    On Wednesday, May 10, 2023, 02:08:24 p.m. EDT, cfd new via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:  
 
  No, it is not the right way to set it. This func does not work. The code does not complain while the func call does not set it as well.The default value is still auto = 0.
    Joe

    On Wednesday, May 10, 2023, 02:01:53 p.m. EDT, cfd new <newcfd at yahoo.com> wrote:  
 
  I managed to set it with gst_util_set_object_arg( G_OBJECT( decoder ), "compliance", "flexible" );Now the code does not complain the setting anymore. Is this the right way to set it?
    Joe

    On Wednesday, May 10, 2023, 10:29:39 a.m. EDT, cfd new <newcfd at yahoo.com> wrote:  
 
 I made a pipeline to receive rtsp streaming with vah264dec compliance=flexible.The pipeline runs fine from command line. But there is an error when I use gstreamer code 
to build the pipeline in C/C++.GstElement * decoder = gst_element_factory_make( "vah264dec", "decoder");g_object_set( decoder, "compliance", "flexible", nullptr );

I got error message:
GLib-GObject-WARNING **: 10:10:33.535: value "((GstH264DecoderCompliance) 1907760221)" of type 'GstH264DecoderCompliance' is invalid or out of range for property 'compliance' of type 'GstH264DecoderCompliance'

This property setting is not documented anywhere.
This is on Ubuntu 22.04 and gstreamer 1.22.2.
   Joe

      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230510/ff13d08b/attachment-0001.htm>


More information about the gstreamer-devel mailing list