mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-04 23:52:55 +08:00
rename pad probe return constant since it was misleading
This commit is contained in:
@@ -49,14 +49,14 @@ func createPipeline() (*gst.Pipeline, error) {
|
||||
|
||||
// Extra check to make sure it is the right type.
|
||||
if ev.Type() != gst.EventTypeCustomDownstream {
|
||||
return gst.PadProbeUnhandled
|
||||
return gst.PadProbeHandled
|
||||
}
|
||||
|
||||
// Unmarshal the event into our custom one
|
||||
var customEvent ExampleCustomEvent
|
||||
if err := ev.GetStructure().UnmarshalInto(&customEvent); err != nil {
|
||||
fmt.Println("Could not parse the custom event!")
|
||||
return gst.PadProbeUnhandled
|
||||
return gst.PadProbeHandled
|
||||
}
|
||||
|
||||
// Log and act accordingly
|
||||
|
Reference in New Issue
Block a user