mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-04 15:42:52 +08:00
fix some comments from copy/paste
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
// This example uses gstreamer's discoverer api.
|
||||
// This example uses gstreamer's device monitor api.
|
||||
//
|
||||
// https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/GstDiscoverer.html
|
||||
// To detect as much information from a given URI.
|
||||
// The amount of time that the discoverer is allowed to use is limited by a timeout.
|
||||
// This allows to handle e.g. network problems gracefully. When the timeout hits before
|
||||
// discoverer was able to detect anything, discoverer will report an error.
|
||||
// In this example, we catch this error and stop the application.
|
||||
// Discovered information could for example contain the stream's duration or whether it is
|
||||
// seekable (filesystem) or not (some http servers).
|
||||
// https://gstreamer.freedesktop.org/documentation/gstreamer/gstdevicemonitor.html
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@@ -1,13 +1,6 @@
|
||||
// This example uses gstreamer's discoverer api.
|
||||
// This example uses gstreamer's device provider api.
|
||||
//
|
||||
// https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/GstDiscoverer.html
|
||||
// To detect as much information from a given URI.
|
||||
// The amount of time that the discoverer is allowed to use is limited by a timeout.
|
||||
// This allows to handle e.g. network problems gracefully. When the timeout hits before
|
||||
// discoverer was able to detect anything, discoverer will report an error.
|
||||
// In this example, we catch this error and stop the application.
|
||||
// Discovered information could for example contain the stream's duration or whether it is
|
||||
// seekable (filesystem) or not (some http servers).
|
||||
// https://gstreamer.freedesktop.org/documentation/gstreamer/gstdeviceprovider.html
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@@ -38,7 +38,7 @@ func (d *DeviceMonitor) RemoveFilter(filterId uint) bool {
|
||||
return gobool(C.gst_device_monitor_remove_filter(d.ptr, C.guint(filterId)))
|
||||
}
|
||||
|
||||
// GetPipelineBus returns the message bus for this pipeline.
|
||||
// GetBus returns the message bus for this pipeline.
|
||||
func (d *DeviceMonitor) GetBus() *Bus {
|
||||
if d.bus == nil {
|
||||
cBus := C.gst_device_monitor_get_bus(d.ptr)
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/tinyzimmer/go-glib/glib"
|
||||
)
|
||||
|
||||
// DeviceMonitor is a Go representation of a GstDeviceMonitor.
|
||||
// DeviceProvider is a Go representation of a GstDeviceProvider.
|
||||
type DeviceProvider struct {
|
||||
ptr *C.GstDeviceProvider
|
||||
bus *Bus
|
||||
@@ -29,7 +29,7 @@ func (d *DeviceProvider) GetDevices() []*Device {
|
||||
return out
|
||||
}
|
||||
|
||||
// GetPipelineBus returns the message bus for this pipeline.
|
||||
// GetBus returns the message bus for this pipeline.
|
||||
func (d *DeviceProvider) GetBus() *Bus {
|
||||
if d.bus == nil {
|
||||
cBus := C.gst_device_provider_get_bus(d.ptr)
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// DeviceMonitor is a Go representation of a GstDeviceMonitor.
|
||||
// DeviceProviderFactory is a Go representation of a GstDeviceProviderFactory.
|
||||
type DeviceProviderFactory struct {
|
||||
ptr *C.GstDeviceProviderFactory
|
||||
}
|
||||
|
Reference in New Issue
Block a user