@@ -390,12 +390,9 @@ func TestPipeWireVideoSourceCopiesPortalBuffersForSoftwareConversion(t *testing.
390390 }
391391}
392392
393- func TestVAAPIPostprocCopiesPortalDMABufferToSystemMemory (t * testing.T ) {
393+ func TestVAAPIPostprocReceivesOriginalPortalDMABuffer (t * testing.T ) {
394394 got := vaapiVideoImportStages ()
395- want := []gstStage {
396- {"vapostproc" , "disable-passthrough=true" },
397- {"video/x-raw" },
398- }
395+ want := []gstStage {{"vapostproc" }}
399396 if ! reflect .DeepEqual (got , want ) {
400397 t .Fatalf ("VA-API import stages = %v, want %v" , got , want )
401398 }
@@ -409,13 +406,10 @@ func TestWaylandVideoInputStagesPreservePortalBufferOwnership(t *testing.T) {
409406 wantImports []gstStage
410407 }{
411408 {
412- name : "VA-API imports before system-memory copy" ,
413- useVAAPI : true ,
414- wantSource : gstStage {"pipewiresrc" , "fd=3" , "path=42" , "do-timestamp=true" , "keepalive-time=33" },
415- wantImports : []gstStage {
416- {"vapostproc" , "disable-passthrough=true" },
417- {"video/x-raw" },
418- },
409+ name : "VA-API imports original portal buffer" ,
410+ useVAAPI : true ,
411+ wantSource : gstStage {"pipewiresrc" , "fd=3" , "path=42" , "do-timestamp=true" , "keepalive-time=33" },
412+ wantImports : []gstStage {{"vapostproc" }},
419413 },
420414 {
421415 name : "software conversion copies portal buffer" ,
0 commit comments