When `unique_component_id` can be negative?

Please provide complete information as applicable to your setup.

• DeepStream Version 6.1.1
• Issue Type( questions)


unique_component_id is defined as a signed integer. In which cases it can be negative? Can it be negative at all?

typedef struct _NvDsObjectMeta { 
  /** Holds a unique component ID that identifies the metadata
   in this structure. */
  gint unique_component_id;

Basically, it won’t be negative. Users should be careful not to assign negative values to it.

1 Like


I guess user can only set it via unique-id property, right? If so, it’s confusing because unique-id is unsigned. Not a big deal, though, we don’t have that many elements in a pipeline to overflow the integer, anyway.

  unique-id           : Unique ID for the element. Can be used to identify output of the element
                        flags: readable, writable, changeable only in NULL or READY state
                        Unsigned Integer. Range: 0 - 4294967295 Default: 15

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.