Opened 18 years ago

Closed 18 years ago

Last modified 18 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: no Analyzed by developer: no

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@… 18 years ago.
vo_directx.c patched to correct the bug

Download all attachments as: .zip

Change History (4)

by dyingshell@…, 18 years ago

Attachment: vo_directx.c added

vo_directx.c patched to correct the bug

comment:1 by dyingshell@…, 18 years ago

comment:2 by dyingshell@…, 18 years ago

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

comment:3 by reimar, 18 years ago

Resolution: fixed
Status: newclosed

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.