Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
fix issue flash can't open camera
Browse files Browse the repository at this point in the history
  • Loading branch information
CatxFish committed Oct 24, 2017
1 parent 291b8df commit dbe5007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/queue/share_queue_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ bool shared_queue_open(share_queue* q, int mode)
return false;

if (mode == ModeVideo)
q->hwnd = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, MAPPING_NAMEV);
q->hwnd = OpenFileMappingA(FILE_MAP_READ, FALSE, MAPPING_NAMEV);
else if (mode == ModeAudio)
q->hwnd = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, MAPPING_NAMEA);
q->hwnd = OpenFileMappingA(FILE_MAP_READ, FALSE, MAPPING_NAMEA);
else
return false;

if (q->hwnd){
q->header = (queue_header*)MapViewOfFile(q->hwnd,
FILE_MAP_ALL_ACCESS, 0, 0, 0);
FILE_MAP_READ, 0, 0, 0);
}
else
return false;
Expand Down

0 comments on commit dbe5007

Please sign in to comment.