Skip to content

Commit

Permalink
Update media_video.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming committed May 16, 2023
1 parent 76fcc94 commit 840c2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/pjsua2/using/media_video.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Application can start the camera (or any capture device in general) preview usin
try {
// Set the video capture device format.
VidDevManager &mgr = Endpoint::instance().vidDevManager();
MediaFormatVideo format = mgr.getFormat(device_id);
MediaFormatVideo format = mgr.getDevInfo(device_id).fmt[0];
format.width = width;
format.height = height;
format.fpsNum = fps;
Expand Down

0 comments on commit 840c2b9

Please sign in to comment.