summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2021-08-29 11:04:17 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-31 17:59:06 +0000
commitcfc80e51686606b36e3daf8bd6c96f540d9f6011 (patch)
tree38df04486fc59732d6e8f6234695131efdb028ab /ext
parent2b6f0404a7305ac5e1006ac280906e0be3c09e47 (diff)
downloadgstreamer-plugins-bad-cfc80e51686606b36e3daf8bd6c96f540d9f6011.tar.gz
wpevideosrc: Uniformise default value for draw-background property
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2498>
Diffstat (limited to 'ext')
-rw-r--r--ext/wpe/gstwpevideosrc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/wpe/gstwpevideosrc.cpp b/ext/wpe/gstwpevideosrc.cpp
index 9b00d78b2..d7e767a39 100644
--- a/ext/wpe/gstwpevideosrc.cpp
+++ b/ext/wpe/gstwpevideosrc.cpp
@@ -97,6 +97,7 @@
#define DEFAULT_HEIGHT 1080
#define DEFAULT_FPS_N 30
#define DEFAULT_FPS_D 1
+#define DEFAULT_DRAW_BACKGROUND TRUE
enum
{
@@ -636,7 +637,7 @@ gst_wpe_video_src_init (GstWpeVideoSrc * src)
gst_pad_set_event_function (pad, gst_wpe_video_src_event);
gst_object_unref (pad);
- src->draw_background = TRUE;
+ src->draw_background = DEFAULT_DRAW_BACKGROUND;
gst_base_src_set_live (GST_BASE_SRC_CAST (src), TRUE);
@@ -675,7 +676,7 @@ gst_wpe_video_src_class_init (GstWpeVideoSrcClass * klass)
"", (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (gobject_class, PROP_DRAW_BACKGROUND,
g_param_spec_boolean ("draw-background", "Draws the background",
- "Whether to draw the WebView background", TRUE,
+ "Whether to draw the WebView background", DEFAULT_DRAW_BACKGROUND,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
gst_element_class_set_static_metadata (gstelement_class,