rename pad probe return constant since it was misleading

This commit is contained in:
RSWilli
2024-11-27 17:52:20 +01:00
parent ce8aa32528
commit dfb62b9176
2 changed files with 7 additions and 7 deletions

View File

@@ -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