player/gir: Trust annotation nullability and remove all overrides

This commit is contained in:
Marijn Suijten 2020-12-01 20:02:11 +01:00
parent e2a9f83f5b
commit 0fee9489a5

View file

@ -8,6 +8,7 @@ concurrency = "send+sync"
generate_safety_asserts = true generate_safety_asserts = true
single_version_file = true single_version_file = true
generate_display_trait = false generate_display_trait = false
trust_return_value_nullability = true
external_libraries = [ external_libraries = [
"GLib", "GLib",
@ -18,9 +19,11 @@ external_libraries = [
generate = [ generate = [
"GstPlayer.PlayerColorBalanceType", "GstPlayer.PlayerColorBalanceType",
"GstPlayer.PlayerError", "GstPlayer.PlayerError",
"GstPlayer.PlayerMediaInfo",
"GstPlayer.PlayerSignalDispatcher", "GstPlayer.PlayerSignalDispatcher",
"GstPlayer.PlayerSnapshotFormat", "GstPlayer.PlayerSnapshotFormat",
"GstPlayer.PlayerState", "GstPlayer.PlayerState",
"GstPlayer.PlayerStreamInfo",
"GstPlayer.PlayerVideoRenderer", "GstPlayer.PlayerVideoRenderer",
"GstPlayer.PlayerVisualization", "GstPlayer.PlayerVisualization",
] ]
@ -85,11 +88,6 @@ final_type = true
# Custom type # Custom type
ignore = true ignore = true
[[object.function]]
name = "get_pipeline"
[object.function.return]
nullable = false
[[object.function]] [[object.function]]
name = "seek" name = "seek"
[[object.function.parameter]] [[object.function.parameter]]
@ -113,10 +111,6 @@ final_type = true
[[object.function]] [[object.function]]
name = "set_visualization" name = "set_visualization"
[[object.function.parameter]]
name = "name"
nullable = true
[object.function.return] [object.function.return]
bool_return_is_error = "Failed to set visualization" bool_return_is_error = "Failed to set visualization"
@ -182,15 +176,6 @@ final_type = true
name = "subtitle-video-offset" name = "subtitle-video-offset"
version = "1.16" version = "1.16"
[[object]]
name = "GstPlayer.PlayerStreamInfo"
status = "generate"
[[object.function]]
name = "get_stream_type"
[object.function.return]
nullable = false
[[object]] [[object]]
name = "GstPlayer.PlayerAudioInfo" name = "GstPlayer.PlayerAudioInfo"
status = "generate" status = "generate"
@ -216,16 +201,6 @@ name = "GstPlayer.PlayerSubtitleInfo"
status = "generate" status = "generate"
final_type = true final_type = true
[[object]]
name = "GstPlayer.PlayerMediaInfo"
status = "generate"
final_type = true
[[object.function]]
name = "get_uri"
[object.function.return]
nullable = false
[[object]] [[object]]
name = "GstPlayer.PlayerVideoOverlayVideoRenderer" name = "GstPlayer.PlayerVideoOverlayVideoRenderer"
status = "generate" status = "generate"