Skip to content

Commit 3152c10

Browse files
committed
Updated format
1 parent e9c241a commit 3152c10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/ffmpeg/format.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ func newInputFormats(demuxer *ff.AVInputFormat, t media.Type) []media.Format {
5252

5353
// Get devices
5454
if t.Is(media.DEVICE) {
55-
dict := ff.AVUtil_dict_alloc()
56-
defer ff.AVUtil_dict_free(dict)
57-
list, err := ff.AVDevice_list_input_sources(demuxer, "", dict)
58-
fmt.Println(err, list, dict)
55+
list, err := ff.AVDevice_list_input_sources(demuxer, "", nil)
56+
if err == nil {
57+
fmt.Println(list)
58+
}
5959
}
6060

6161
return result

0 commit comments

Comments
 (0)