win32ipcvideosrc: Fix property name and enum value mismatch

Make them consistent

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3465>
This commit is contained in:
Seungha Yang 2022-11-25 20:19:22 +09:00 committed by GStreamer Marge Bot
parent 20e83fa45b
commit 468b049a04

View file

@ -54,7 +54,7 @@ enum
{ {
PROP_0, PROP_0,
PROP_PIPE_NAME, PROP_PIPE_NAME,
PROP_PROCESSING_DELAY, PROP_PROCESSING_DEADLINE,
}; };
#define DEFAULT_PIPE_NAME "\\\\.\\pipe\\gst.win32.ipc.video" #define DEFAULT_PIPE_NAME "\\\\.\\pipe\\gst.win32.ipc.video"
@ -120,7 +120,7 @@ gst_win32_ipc_video_src_class_init (GstWin32IpcVideoSrcClass * klass)
"Validation of the pipe name is caller's responsibility", "Validation of the pipe name is caller's responsibility",
DEFAULT_PIPE_NAME, (GParamFlags) (G_PARAM_READWRITE | DEFAULT_PIPE_NAME, (GParamFlags) (G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS | GST_PARAM_MUTABLE_READY))); G_PARAM_STATIC_STRINGS | GST_PARAM_MUTABLE_READY)));
g_object_class_install_property (object_class, PROP_PROCESSING_DELAY, g_object_class_install_property (object_class, PROP_PROCESSING_DEADLINE,
g_param_spec_uint64 ("processing-deadline", "Processing deadline", g_param_spec_uint64 ("processing-deadline", "Processing deadline",
"Maximum processing time for a buffer in nanoseconds", 0, G_MAXUINT64, "Maximum processing time for a buffer in nanoseconds", 0, G_MAXUINT64,
DEFAULT_PROCESSING_DEADLINE, (GParamFlags) (G_PARAM_READWRITE | DEFAULT_PROCESSING_DEADLINE, (GParamFlags) (G_PARAM_READWRITE |
@ -187,7 +187,7 @@ gst_win32_ipc_video_src_set_property (GObject * object, guint prop_id,
self->pipe_name = g_strdup (DEFAULT_PIPE_NAME); self->pipe_name = g_strdup (DEFAULT_PIPE_NAME);
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
break; break;
case PROP_PROCESSING_DELAY: case PROP_PROCESSING_DEADLINE:
{ {
GstClockTime prev_val, new_val; GstClockTime prev_val, new_val;
GST_OBJECT_LOCK (self); GST_OBJECT_LOCK (self);
@ -221,7 +221,7 @@ gst_win32_video_src_get_property (GObject * object, guint prop_id,
g_value_set_string (value, self->pipe_name); g_value_set_string (value, self->pipe_name);
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
break; break;
case PROP_PROCESSING_DELAY: case PROP_PROCESSING_DEADLINE:
GST_OBJECT_LOCK (self); GST_OBJECT_LOCK (self);
g_value_set_uint64 (value, self->processing_deadline); g_value_set_uint64 (value, self->processing_deadline);
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);