v4l2videodec: Implement stable element names
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 13 Jul 2017 16:32:00 +0000 (12:32 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 14 Jul 2017 17:31:30 +0000 (13:31 -0400)
commit724a3ceec55dff2248ff69272ca9dfcfca141f8c
tree88fb53d3ecc053dde18b122913cbb9167df99a1b
parentd0dfbb04c002bc94fb7d68d420f5276c32b9d991
v4l2videodec: Implement stable element names

Before that, each m2m node would be wrapped as a single, multi-format
decoder element. As a unique name was needed, we where using the device
name, which changes between re-boots. This led to unpredictable element
names. In this patch, we generate an element per codec, using
v4l2<codec>dec name. If there is multiple decoder for the same format,
the following elements will be named v4l2<node><codec>dec.

https://bugzilla.gnome.org/show_bug.cgi?id=784908
sys/v4l2/gstv4l2videodec.c