d3d11: Store more device information in context structure
It would be more informative for debugging
as-is
gst-launch-1.0.exe filesrc location=trailer.mp4 ! qtdemux ! h264parse ! tee name=t ! queue ! d3d11h264dec ! fakesink t. ! queue ! d3d11h264device1dec ! fakesink t. ! queue ! d3d11h264device2dec ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'd3d11h264device2dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device6", adapter=(int)2;
Got context from element 'd3d11h264device1dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device7", adapter=(int)1;
Got context from element 'd3d11h264dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device8", adapter=(int)0;
to-be
gst-launch-1.0.exe filesrc location=trailer.mp4 ! qtdemux ! h264parse ! tee name=t ! queue ! d3d11h264dec ! fakesink t. ! queue ! d3d11h264device1dec ! fakesink t. ! queue ! d3d11h264device2dec ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'd3d11h264device2dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device6", adapter=(uint)2, device-id=(uint)26591, vendor-id=(uint)4098, hardware=(boolean)true, description=(string)"Radeon\ RX\ 570\ Series";
Got context from element 'd3d11h264device1dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device7", adapter=(uint)1, device-id=(uint)16018, vendor-id=(uint)32902, hardware=(boolean)true, description=(string)"Intel\(R\)\ UHD\ Graphics\ 630";
Got context from element 'd3d11h264dec0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device8", adapter=(uint)0, device-id=(uint)7815, vendor-id=(uint)4318, hardware=(boolean)true, description=(string)"NVIDIA\ GeForce\ RTX\ 2080";