mirror of
https://github.com/nestriness/warp.git
synced 2025-12-13 02:15:42 +02:00
fix(sink): add `gst::PadProbeReturn::Handled`
This commit is contained in:
@@ -291,6 +291,7 @@ impl GST {
|
|||||||
0.bytes(),
|
0.bytes(),
|
||||||
gst::GenericFormattedValue::none_for_format(format), // No known end position, or you can specify it if known
|
gst::GenericFormattedValue::none_for_format(format), // No known end position, or you can specify it if known
|
||||||
);
|
);
|
||||||
|
gst::PadProbeReturn::Handled
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
// For other formats, do not handle the seeking query
|
// For other formats, do not handle the seeking query
|
||||||
@@ -299,14 +300,12 @@ impl GST {
|
|||||||
gst::GenericFormattedValue::none_for_format(format),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
gst::GenericFormattedValue::none_for_format(format),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
);
|
);
|
||||||
|
gst::PadProbeReturn::Handled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => gst::PadProbeReturn::Ok,
|
||||||
unreachable!("query seeking");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
gst::PadProbeReturn::Pass
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// appsink.set_callbacks(
|
// appsink.set_callbacks(
|
||||||
|
|||||||
Reference in New Issue
Block a user