hwcontext: Do not call device_init again when deriving an existing device
authorMark Thompson <sw@jkqxz.net>
Mon, 14 May 2018 21:58:56 +0000 (22:58 +0100)
committerMark Thompson <sw@jkqxz.net>
Tue, 15 May 2018 21:16:03 +0000 (22:16 +0100)
commit136260eb88e80ed4f4712a341805ec1d0d69bbca
treeef3ad5822765a620b9ab00daeb80a2f0c5c8bfe0
parent1b2471039b23f4edd3b37899b3edd1ae40c01315
hwcontext: Do not call device_init again when deriving an existing device

The change in 309d660775e2b47af6723a0477c4d753bc0c54f4 to call device_init
when doing derivation missed this case - we should only call it if we
actually made a new device.
libavutil/hwcontext.c