mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
lib: Replace usage of "g_str_equal" with "g_strcmp0"
The first one is meant for hash tables comparisons and does not guard against NULL values (#259).
This commit is contained in:
4
lib/gst/clapper/gstclapper.c
vendored
4
lib/gst/clapper/gstclapper.c
vendored
@@ -2189,7 +2189,7 @@ gst_clapper_subtitle_info_update (GstClapper * self,
|
||||
g_object_get (G_OBJECT (self->playbin), "current-suburi", &suburi, NULL);
|
||||
if (suburi) {
|
||||
if (self->use_playbin3) {
|
||||
if (g_str_equal (self->subtitle_sid, stream_info->stream_id))
|
||||
if (!g_strcmp0 (self->subtitle_sid, stream_info->stream_id))
|
||||
info->language = g_path_get_basename (suburi);
|
||||
} else {
|
||||
g_object_get (G_OBJECT (self->playbin), "current-text", &text_index,
|
||||
@@ -2387,7 +2387,7 @@ gst_clapper_stream_info_find_from_stream_id (GstClapperMediaInfo * media_info,
|
||||
list = gst_clapper_media_info_get_stream_list (media_info);
|
||||
for (l = list; l != NULL; l = l->next) {
|
||||
info = (GstClapperStreamInfo *) l->data;
|
||||
if (g_str_equal (info->stream_id, stream_id)) {
|
||||
if (!g_strcmp0 (info->stream_id, stream_id)) {
|
||||
return info;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user