Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove need of redundant argument ffmpeg #408

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/VideoIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
end
elseif Sys.iswindows()
function init_camera_devices()
append!(CAMERA_DEVICES, get_camera_devices(ffmpeg, "dshow", "dummy"))
append!(CAMERA_DEVICES, get_camera_devices("dshow", "dummy"))

Check warning on line 59 in src/VideoIO.jl

View check run for this annotation

Codecov / codecov/patch

src/VideoIO.jl#L59

Added line #L59 was not covered by tests
return DEFAULT_CAMERA_FORMAT[] = libffmpeg.av_find_input_format("dshow")
end
function init_camera_settings()
Expand All @@ -66,11 +66,11 @@
elseif Sys.isapple()
function init_camera_devices()
try
append!(CAMERA_DEVICES, get_camera_devices(ffmpeg, "avfoundation", "\"\""))
append!(CAMERA_DEVICES, get_camera_devices("avfoundation", "\"\""))

Check warning on line 69 in src/VideoIO.jl

View check run for this annotation

Codecov / codecov/patch

src/VideoIO.jl#L69

Added line #L69 was not covered by tests
DEFAULT_CAMERA_FORMAT[] = libffmpeg.av_find_input_format("avfoundation")
catch
try
append!(CAMERA_DEVICES, get_camera_devices(ffmpeg, "qtkit", "\"\""))
append!(CAMERA_DEVICES, get_camera_devices("qtkit", "\"\""))

Check warning on line 73 in src/VideoIO.jl

View check run for this annotation

Codecov / codecov/patch

src/VideoIO.jl#L73

Added line #L73 was not covered by tests
DEFAULT_CAMERA_FORMAT[] = libffmpeg.av_find_input_format("qtkit")
catch
end
Expand All @@ -85,7 +85,7 @@
elseif Sys.isbsd()
# copied loosely from apple above - needs figuring out
function init_camera_devices()
append!(CAMERA_DEVICES, get_camera_devices(ffmpeg, "avfoundation", "\"\""))
append!(CAMERA_DEVICES, get_camera_devices("avfoundation", "\"\""))

Check warning on line 88 in src/VideoIO.jl

View check run for this annotation

Codecov / codecov/patch

src/VideoIO.jl#L88

Added line #L88 was not covered by tests
return DEFAULT_CAMERA_FORMAT[] = libffmpeg.av_find_input_format("avfoundation")
end
function init_camera_settings()
Expand Down
2 changes: 1 addition & 1 deletion src/avio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@
const DEFAULT_CAMERA_DEVICE = Ref{String}()
const DEFAULT_CAMERA_OPTIONS = AVDict()

function get_camera_devices(ffmpeg, idev, idev_name)
function get_camera_devices(idev, idev_name)

Check warning on line 1020 in src/avio.jl

View check run for this annotation

Codecov / codecov/patch

src/avio.jl#L1020

Added line #L1020 was not covered by tests
ashwanirathee marked this conversation as resolved.
Show resolved Hide resolved
camera_devices = String[]

read_vid_devs = false
Expand Down
Loading