Skip to content

Commit

Permalink
Fix Clang -Wsentinel warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark committed Jul 1, 2024
1 parent 7b89554 commit e566c29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gstcefsrc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class AudioHandler : public CefAudioHandler
GstStructure *s = gst_structure_new ("cef-audio-stream-start",
"channels", G_TYPE_INT, channels,
"rate", G_TYPE_INT, params.sample_rate,
NULL);
nullptr);
GstEvent *event = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM, s);

mRate = params.sample_rate;
Expand Down Expand Up @@ -572,7 +572,7 @@ run_cef (GstCefSrc *src)
gchar* current_dir = g_get_current_dir();

gchar* old_base_path = base_path;
base_path = g_build_filename(current_dir, base_path, NULL);
base_path = g_build_filename(current_dir, base_path, nullptr);

g_free(current_dir);
g_free(old_base_path);
Expand Down Expand Up @@ -617,7 +617,7 @@ run_cef (GstCefSrc *src)
CefString(&settings.main_bundle_path).FromString(main_bundle_folder);
#endif

gchar *locales_dir_path = g_build_filename(base_path, "locales", NULL);
gchar *locales_dir_path = g_build_filename(base_path, "locales", nullptr);
CefString(&settings.locales_dir_path).FromASCII(locales_dir_path);

if (src->js_flags != NULL) {
Expand Down Expand Up @@ -829,7 +829,7 @@ gst_cef_src_fixate (GstBaseSrc * base_src, GstCaps * caps)
if (gst_structure_has_field (structure, "framerate"))
gst_structure_fixate_field_nearest_fraction (structure, "framerate", DEFAULT_FPS_N, DEFAULT_FPS_D);
else
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION, DEFAULT_FPS_N, DEFAULT_FPS_D, NULL);
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION, DEFAULT_FPS_N, DEFAULT_FPS_D, nullptr);


caps = GST_BASE_SRC_CLASS (parent_class)->fixate (base_src, caps);
Expand Down

0 comments on commit e566c29

Please sign in to comment.