Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#429 closed defect (fixed)

(patch included) adapter_count is not reset when jumping to another file in the queue

Reported by: dyingshell@… Owned by: alex@…
Priority: important Component: vo
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

When using DirectX video output, each time a new queued file starts playing,
adapter_count is not reset to 0. If used in combination with -adapter N,
mplayer fails to to select the specified adapter.

This command line will reproduce the error:

mplayer -adapter 2 movie1.avi movie2.avi

movie1.avi will play fine on adapter 2, but as soon as movie2.avi starts,
mplayer will not find adapter 2 anymore.

Adding this line to vo_directx.c fixes it:

if(vo_adapter_num){ display other than default

patch to reset the adapter count each time a new file starts
adapter_count=0;
patch ends

Attachments (1)

vo_directx.c (56.5 KB) - added by dyingshell@… 13 years ago.
vo_directx.c patched to correct the bug

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by dyingshell@…

vo_directx.c patched to correct the bug

comment:1 Changed 13 years ago by dyingshell@…

comment:2 Changed 13 years ago by dyingshell@…

  • Summary changed from adapter_count is not reset when jumping to another file in the queue to (patch included) adapter_count is not reset when jumping to another file in the queue

comment:3 Changed 13 years ago by reimar

  • Resolution set to fixed
  • Status changed from new to closed

Umm... you should use diff -u to create a patch, not attach the whole file.
Anyway, should be fixed in CVS, though a tiny bit differently (adapter count
should even be set to 0 when vo_adapter_num isn't set.

Note: See TracTickets for help on using tickets.