mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +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/3672>
This commit is contained in:
parent
401ea9f683
commit
f45cfe0d53
1 changed files with 1 additions and 1 deletions
|
@ -795,7 +795,7 @@ gst_srt_object_set_socket_option (GstStructure * s, const gchar * key,
|
||||||
{
|
{
|
||||||
SrtOption *option = srt_options;
|
SrtOption *option = srt_options;
|
||||||
|
|
||||||
for (; option; ++option) {
|
for (; option->name; ++option) {
|
||||||
if (g_str_equal (key, option->name)) {
|
if (g_str_equal (key, option->name)) {
|
||||||
switch (option->gtype) {
|
switch (option->gtype) {
|
||||||
case G_TYPE_INT:
|
case G_TYPE_INT:
|
||||||
|
|
Loading…
Reference in a new issue