#429 closed defect (fixed)
(patch included) adapter_count is not reset when jumping to another file in the queue
Reported by: | Owned by: | ||
---|---|---|---|
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)
Change History (4)
by , 19 years ago
Attachment: | vo_directx.c added |
---|
comment:1 by , 19 years ago
comment:2 by , 19 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 , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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.
vo_directx.c patched to correct the bug