Skip to content

Commit 5546558

Browse files
committed
add comments
1 parent e3e35f2 commit 5546558

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

video_player/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Then add the following option to your go-flutter [application options](https://g
1616
flutter.AddPlugin(&video_player.VideoPlayerPlugin{}),
1717
```
1818

19-
The plugin uses a third party library to handle video to image decoding.
20-
The video decoding is done by [3d0c/gmf](https://github.com/3d0c/gmf), a go
19+
The plugin uses a third party library to handle video to image decoding,
20+
[3d0c/gmf](https://github.com/3d0c/gmf), a go
2121
FFmpeg bindings.
22-
If you have trubble installing the plugin, checkout their [installation](https://github.com/3d0c/gmf#installation) procedure.
22+
If you have trouble installing the plugin, checkout their [installation](https://github.com/3d0c/gmf#installation) procedure.
2323

2424
## :warning: Disclaimer :warning:
2525

2626
This plugin is available for educational purposes, and the go-flutter team isn't
2727
actively working on it.
2828
**`Don't use it in production`** nasty bugs can occur
2929
(mostly memory leak).
30-
We are looking for maintainers. Pull Requests are most welcome!
30+
The plugin needs a significant rewrite. We are looking for maintainers. Pull Requests are most welcome!
3131

3232
## Issues
3333

video_player/ffmpeg-video.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package video_player
33
// This file hides the ffmpeg related computations.
44
//
55
// The api exposed by github.com/3d0c/gmf is messy (all go-ffmpeg lib are)
6-
// which explain the following mess.
7-
//
8-
// Be very careful when you make changes to this file.
6+
// which explain some of the following mess :).
97
//
108
// Based on the examples 'video-to-goImage.go' of 3d0c/gmf.
119
// TODO: fix the memory leak will occur..
@@ -19,9 +17,6 @@ import (
1917
"github.com/3d0c/gmf"
2018
)
2119

22-
// #include "libavformat/avformat.h"
23-
import "C"
24-
2520
type ffmpegVideo struct {
2621
swsctx *gmf.SwsCtx
2722
ist *gmf.Stream

video_player/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.12
44

55
require (
66
github.com/3d0c/gmf v0.0.0-20190724130615-f4b5acb7db5c
7-
github.com/go-flutter-desktop/go-flutter v0.27.4-0.20190804194945-75d1c8142b5d
7+
github.com/go-flutter-desktop/go-flutter v0.29.0
88
)

video_player/go.sum

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ github.com/3d0c/gmf v0.0.0-20190724130615-f4b5acb7db5c/go.mod h1:0QMRcUq2JsDECeA
33
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
44
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
55
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
6-
github.com/go-flutter-desktop/go-flutter v0.27.4-0.20190804194945-75d1c8142b5d h1:hAF4o4UQzPlDCrP1pxSrFdJJEg82Dn1K4SaESYv+5KU=
7-
github.com/go-flutter-desktop/go-flutter v0.27.4-0.20190804194945-75d1c8142b5d/go.mod h1:j9eXkEzV8ku7a3Ve4s8cYKPiOkMIAg549S8K9VomyY4=
6+
github.com/go-flutter-desktop/go-flutter v0.29.0 h1:PONS1I6HN64tsBViWSnI/DMUCs2Oth37Gg1eDkGri0g=
7+
github.com/go-flutter-desktop/go-flutter v0.29.0/go.mod h1:jOq/jZc4gZCibc661M7R5nDVc9/mv2dDMpWsyNaVuGY=
88
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 h1:SCYMcCJ89LjRGwEa0tRluNRiMjZHalQZrVrvTbPh+qw=
99
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7/go.mod h1:482civXOzJJCPzJ4ZOX/pwvXBWSnzD4OKMdH4ClKGbk=
1010
github.com/go-gl/glfw v0.0.0-20190519095719-e6da0acd62b1 h1:noz9OnjV5PMOZWNOI+y1cS5rnxuJfpY6leIgQEEdBQw=
@@ -14,5 +14,9 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
1414
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1515
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1616
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
17-
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
18-
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
17+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
18+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
19+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
20+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
21+
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
22+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

0 commit comments

Comments
 (0)