mirror of
https://github.com/ziutek/gst.git
synced 2025-12-24 10:40:59 +08:00
Fix types.
This commit is contained in:
@@ -93,7 +93,7 @@ func (wm *WebM) ServeHTTP(wr http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
|
||||
// Handler for connection closing
|
||||
func (wm *WebM) cbClientFdRemoved(fd uint32) {
|
||||
func (wm *WebM) cbClientFdRemoved(fd int32) {
|
||||
wm.conns[int(fd)].Close()
|
||||
syscall.Close(int(fd))
|
||||
delete(wm.conns, int(fd))
|
||||
@@ -121,10 +121,10 @@ func NewWebM(width, height, fps int) *WebM {
|
||||
wm.pl.Add(src, enc, mux, wm.sink)
|
||||
|
||||
filter := gst.NewCapsSimple(
|
||||
"video/x-raw-yuv",
|
||||
"video/x-raw,format=yuv",
|
||||
glib.Params{
|
||||
"width": width,
|
||||
"height": height,
|
||||
"width": int32(width),
|
||||
"height": int32(height),
|
||||
"framerate": &gst.Fraction{fps, 1},
|
||||
},
|
||||
)
|
||||
|
||||
@@ -27,7 +27,7 @@ func main() {
|
||||
|
||||
pl.Add(src, sink)
|
||||
filter := gst.NewCapsSimple(
|
||||
"video/x-raw-yuv",
|
||||
"video/x-raw,format=yuv",
|
||||
glib.Params{
|
||||
"width": int32(192),
|
||||
"height": int32(108),
|
||||
|
||||
Reference in New Issue
Block a user