mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
srt: Avoid crash on unknown option
Use the correct field that is null instead of the struct value which never is. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3682>
This commit is contained in:
parent
32d11fdaf4
commit
7cb4f36c42
1 changed files with 1 additions and 1 deletions
|
@ -771,7 +771,7 @@ gst_srt_object_set_socket_option (GstStructure * s, const gchar * key,
|
|||
{
|
||||
SrtOption *option = srt_options;
|
||||
|
||||
for (; option; ++option) {
|
||||
for (; option->name; ++option) {
|
||||
if (g_str_equal (key, option->name)) {
|
||||
switch (option->gtype) {
|
||||
case G_TYPE_INT:
|
||||
|
|
Loading…
Reference in a new issue