Pipewireパッケージ(ちょっと変更)
Révision | dcad1243a8aade7698817a83d9f22b7e49becb2c (tree) |
---|---|
l'heure | 2023-10-06 15:50:22 |
Auteur | Wim Taymans <wtaymans@redh...> |
Commiter | Wim Taymans |
pw-cli: avoid NULL deref
info can be NULL so use the update instead.
@@ -1031,7 +1031,7 @@ static void session_event_info(void *data, | ||
1031 | 1031 | } |
1032 | 1032 | } |
1033 | 1033 | if (pd->global == NULL) |
1034 | - pd->global = pw_map_lookup(&rd->globals, info->id); | |
1034 | + pd->global = pw_map_lookup(&rd->globals, update->id); | |
1035 | 1035 | if (pd->global && pd->global->info_pending) { |
1036 | 1036 | info_session(pd); |
1037 | 1037 | pd->global->info_pending = false; |
@@ -1087,7 +1087,7 @@ static void endpoint_event_info(void *data, | ||
1087 | 1087 | } |
1088 | 1088 | } |
1089 | 1089 | if (pd->global == NULL) |
1090 | - pd->global = pw_map_lookup(&rd->globals, info->id); | |
1090 | + pd->global = pw_map_lookup(&rd->globals, update->id); | |
1091 | 1091 | if (pd->global && pd->global->info_pending) { |
1092 | 1092 | info_endpoint(pd); |
1093 | 1093 | pd->global->info_pending = false; |
@@ -1136,7 +1136,7 @@ static void endpoint_stream_event_info(void *data, | ||
1136 | 1136 | } |
1137 | 1137 | } |
1138 | 1138 | if (pd->global == NULL) |
1139 | - pd->global = pw_map_lookup(&rd->globals, info->id); | |
1139 | + pd->global = pw_map_lookup(&rd->globals, update->id); | |
1140 | 1140 | if (pd->global && pd->global->info_pending) { |
1141 | 1141 | info_endpoint_stream(pd); |
1142 | 1142 | pd->global->info_pending = false; |