BROKEN:
C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0>..\..\bin\gst-launch-1.0.exe --gst-debug=d3d*:6 videotestsrc num-buffers=1 ! video/x-raw,width=637,height=480,format=I420 ! d3dvideosink
0:00:00.084082776  6908 00000000033188A0 DEBUG           d3dvideosink d3dvideosink.c:168:gst_d3dvideosink_init:<GstD3DVideoSink@00000000004FAD50>
Setting pipeline to PAUSED ...
0:00:00.091939148  6908 00000000033188A0 DEBUG           d3dvideosink d3dvideosink.c:439:gst_d3dvideosink_start:<d3dvideosink0> Start() called
0:00:00.099308462  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2210:d3d_class_init: D3D class init [refs:1]
0:00:00.869538970  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2573:d3d_hidden_window_thread: Direct3D hidden window handle: 00000000001C0544
0:00:00.875798409  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2342:d3d_class_display_device_create:
0:00:00.881021683  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2408:d3d_class_display_device_create: Creating Direct3D device for hidden window 0000000000000000
0:00:00.901113748  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2418:d3d_class_display_device_create: Display Device format: D3DFMT_X8R8G8B8
0:00:00.904798405  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2586:d3d_hidden_window_thread: Entering Direct3D hidden window message loop
0:00:00.911196403  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2271:d3d_class_init: Hidden window message loop is running..
Pipeline is PREROLLING ...
0:00:00.919902327  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_X8B8G8R8 - FALSE
0:00:00.927925717  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_A8R8G8B8 - TRUE
0:00:00.933892175  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_A8B8G8R8 - FALSE
0:00:00.937299713  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_R8G8B8 - FALSE
0:00:00.940520172  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_R5G6B5 - TRUE
0:00:00.943831138  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_X1R5G5B5 - TRUE
0:00:00.947180360  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_YV12 - TRUE
0:00:00.950363031  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_YV12 - TRUE
0:00:00.956352348  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_NV12 - TRUE
0:00:00.959589136  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_YUY2 - TRUE
0:00:00.962761543  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_UYVY - TRUE
0:00:00.966040319  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:771:d3d_supported_caps:<d3dvideosink0> Supported Caps:
0:00:00.968978527  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> RGB15 -> D3DFMT_X1R5G5B5
0:00:00.971856553  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> RGB16 -> D3DFMT_R5G6B5
0:00:00.974622145  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> BGRA -> D3DFMT_A8R8G8B8
0:00:00.977437190  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> UYVY -> D3DFMT_UYVY
0:00:00.980687041  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> YUY2 -> D3DFMT_YUY2
0:00:00.983769874  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> NV12 -> D3DFMT_NV12
0:00:00.986948345  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> YV12 -> D3DFMT_YV12
0:00:00.992483729  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> I420 -> D3DFMT_YV12
0:00:00.997913676  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:781:d3d_supported_caps:<d3dvideosink0> BGRx -> D3DFMT_X8R8G8B8 [display]
0:00:01.001352938  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:800:d3d_supported_caps:<d3dvideosink0> Supported caps: video/x-raw, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2
147483647/1 ], format=(string){ RGB15, RGB16, BGRA, UYVY, YUY2, NV12, YV12, I420, BGRx }
0:00:01.027086756  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:285:gst_d3dvideosink_set_caps:<d3dvideosink0>
0:00:01.029687196  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:287:gst_d3dvideosink_set_caps:<d3dvideosink0> Caps: video/x-raw, format=(string)I420, width=(int)637, height=(int)480, framerate=(fraction)30/1, pixel-aspe
ct-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:01.037134421  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:307:gst_d3dvideosink_set_caps:<d3dvideosink0> Set Caps Format: I420
0:00:01.040278836  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:321:gst_d3dvideosink_set_caps:<d3dvideosink0> video width/height: 637x480, calculated display ratio: 637/480 format: 2
0:00:01.044255541  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:332:gst_d3dvideosink_set_caps:<d3dvideosink0> keeping video height
0:00:01.047328110  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:348:gst_d3dvideosink_set_caps:<d3dvideosink0> scaling to 637x480
0:00:01.050689929  6908 0000000003315340 DEBUG           d3dvideosink d3dvideosink.c:361:gst_d3dvideosink_set_caps:<d3dvideosink0> Selected caps: video/x-raw, format=(string)I420, width=(int)637, height=(int)480, framerate=(fraction)30/1, p
ixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:01.058922324  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:248:gst_video_d3d_format_check:<d3dvideosink0> Checking: D3DFMT_YV12 - TRUE
0:00:01.061866131  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:833:d3d_set_render_format:<d3dvideosink0> Selected I420 -> D3DFMT_YV12
0:00:01.065373973  6908 0000000003315540 DEBUG           d3dvideosink d3dhelpers.c:2134:d3d_internal_window_thread:<d3dvideosink0> Entering internal window thread: 0000000003315540
0:00:01.098783149  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:2189:d3d_create_internal_window:<d3dvideosink0> Created window: 00000000000B053A (intervals: 2)
0:00:01.105679401  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:1156:d3d_prepare_window:<d3dvideosink0> No window id was set.. creating internal window
0:00:01.120780524  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:1264:d3d_init_swap_chain: Initializing Direct3D swap chain
0:00:01.139798636  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:1267:d3d_init_swap_chain: Direct3D back buffer size: 637x480
0:00:01.159553866  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:1302:d3d_init_swap_chain: Direct3D stretch rect texture filter: 0
0:00:01.177801737  6908 0000000003315340 DEBUG           d3dvideosink d3dhelpers.c:1067:d3d_prepare_render_window:<d3dvideosink0> Prepared window for render [HWND:00000000000B053A]
0:00:01.195567215  6908 0000000003315340 LOG             d3dvideosink d3dhelpers.c:489:gst_d3dsurface_buffer_pool_new:<d3dsurfacebufferpool0> new buffer pool 0000000003410BC0
0:00:01.201009292  6908 0000000003315340 LOG             d3dvideosink d3dhelpers.c:549:gst_d3dsurface_buffer_pool_set_config:<d3dsurfacebufferpool0> 637x480, caps video/x-raw, format=(string)I420, width=(int)637, height=(int)480, framerate=
(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:01.245597936  6908 0000000003315340 LOG             d3dvideosink d3dhelpers.c:489:gst_d3dsurface_buffer_pool_new:<d3dsurfacebufferpool1> new buffer pool 0000000003361FA0
0:00:01.261958691  6908 0000000003315340 LOG             d3dvideosink d3dhelpers.c:549:gst_d3dsurface_buffer_pool_set_config:<d3dsurfacebufferpool1> 637x480, caps video/x-raw, format=(string)I420, width=(int)637, height=(int)480, framerate=
(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:01.296941007  6908 0000000003315340 INFO            d3dvideosink d3dhelpers.c:1831:d3d_render_buffer:<d3dvideosink0> Render 0:00:00.000000000
alloc lock 00000000047A3658: 00000010 637 480 768
alloc lock 00000000047A3658: 00000010 637 480 768
alloc lock 00000000047A3658: 00000010 637 480 768
map lock 00000000047A3658: 00000002 00000000 1024
map lock 00000000047A3658: 00000002 00000000 1024
map lock 00000000047A3658: 00000002 00000000 1024
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:01.411945418 New clock: GstSystemClock
 6908 0000000003315340 INFO            d3dvideosink d3dhelpers.c:1831:d3d_render_buffer:<d3dvideosink0> Render 0:00:00.000000000
alloc lock 0000000005D3CEF8: 00000010 637 480 768
map lock 0000000005D3CEF8: 00000002 00000000 1024
map lock 0000000005D3CEF8: 00000002 00000000 1024
map lock 0000000005D3CEF8: 00000002 00000000 1024
Got EOS from element "pipeline0".
Execution ended after 0:00:00.075649305
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
0:00:01.521504019  6908 00000000033188A0 DEBUG           d3dvideosink d3dvideosink.c:449:gst_d3dvideosink_stop:<d3dvideosink0> Stop() called
0:00:01.537566195  6908 00000000033188A0 LOG             d3dvideosink d3dhelpers.c:499:gst_d3dsurface_buffer_pool_finalize:<d3dsurfacebufferpool0> finalize buffer pool 0000000003410BC0
0:00:01.552389732  6908 00000000033188A0 LOG             d3dvideosink d3dhelpers.c:499:gst_d3dsurface_buffer_pool_finalize:<d3dsurfacebufferpool1> finalize buffer pool 0000000003361FA0
0:00:01.566448626  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:1094:d3d_set_window_handle:<d3dvideosink0> Unsetting window [HWND:00000000000B053A]
0:00:01.579122858  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:978:d3d_window_wndproc_unset:<d3dvideosink0>
0:00:01.566535401  6908 0000000003315540 DEBUG           d3dvideosink d3dhelpers.c:2159:d3d_internal_window_thread:<d3dvideosink0> Exiting internal window thread: 0000000003315540
0:00:01.590255206  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:1330:d3d_release_swap_chain:<d3dvideosink0> Releasing Direct3D swap chain
0:00:01.625972774  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:1342:d3d_release_swap_chain:<d3dvideosink0> D3D swapchain released. Ref count: 0
0:00:01.635855754  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:1348:d3d_release_swap_chain:<d3dvideosink0> D3D surface released. Ref count: 0
0:00:01.646942850  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2295:d3d_class_destroy: D3D class destroy [refs:0]
0:00:01.652772614  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2305:d3d_class_destroy: Shutting down window proc thread, waiting to join..
0:00:01.666892156  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2603:d3d_hidden_window_thread: Leaving Direct3D hidden window message loop
0:00:01.691618268  6908 0000000003315300 DEBUG           d3dvideosink d3dhelpers.c:2440:d3d_class_display_device_destroy: Direct3D device [adapter:0] released. Reference count: 0
0:00:01.697847849  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2308:d3d_class_destroy: Joined..
0:00:01.707969226  6908 00000000033188A0 DEBUG           d3dvideosink d3dhelpers.c:2316:d3d_class_destroy: Direct3D object released. Reference count: 0
Freeing pipeline ...
0:00:01.719601695  6908 00000000033188A0 DEBUG           d3dvideosink d3dvideosink.c:187:gst_d3dvideosink_finalize:<d3dvideosink0>