diff --git a/examples/device_monitor/main.go b/examples/device_monitor/main.go index 3bb8ca3..0044539 100644 --- a/examples/device_monitor/main.go +++ b/examples/device_monitor/main.go @@ -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 ( diff --git a/examples/device_provider/main.go b/examples/device_provider/main.go index 267bb8b..ae9577a 100644 --- a/examples/device_provider/main.go +++ b/examples/device_provider/main.go @@ -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 ( diff --git a/gst/gst_device_monitor.go b/gst/gst_device_monitor.go index 028781d..f307d1f 100644 --- a/gst/gst_device_monitor.go +++ b/gst/gst_device_monitor.go @@ -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) diff --git a/gst/gst_device_provider.go b/gst/gst_device_provider.go index a83deb3..ff25d9f 100644 --- a/gst/gst_device_provider.go +++ b/gst/gst_device_provider.go @@ -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) diff --git a/gst/gst_device_provider_factory.go b/gst/gst_device_provider_factory.go index 1d9d53b..b45635f 100644 --- a/gst/gst_device_provider_factory.go +++ b/gst/gst_device_provider_factory.go @@ -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 }