mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2src: Rename pre-set-format signal to prepare-format
This commit is contained in:
parent
a63451ecd7
commit
deb7cdcdda
2 changed files with 3 additions and 3 deletions
|
@ -178,7 +178,7 @@ gst_v4l2src_class_init (GstV4l2SrcClass * klass)
|
||||||
PROP_DEF_DECIMATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
PROP_DEF_DECIMATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstV4l2Src::pre-set-format:
|
* GstV4l2Src::prepare-format:
|
||||||
* @v4l2src: the v4l2src instance
|
* @v4l2src: the v4l2src instance
|
||||||
* @fd: the file descriptor of the current device
|
* @fd: the file descriptor of the current device
|
||||||
* @fourcc: the fourcc of the format being set
|
* @fourcc: the fourcc of the format being set
|
||||||
|
@ -191,7 +191,7 @@ gst_v4l2src_class_init (GstV4l2SrcClass * klass)
|
||||||
* This is mostly useful for UVC H264 encoding cameras which need the H264
|
* This is mostly useful for UVC H264 encoding cameras which need the H264
|
||||||
* Probe & Commit to happen prior to the normal Probe & Commit.
|
* Probe & Commit to happen prior to the normal Probe & Commit.
|
||||||
*/
|
*/
|
||||||
gst_v4l2_signals[SIGNAL_PRE_SET_FORMAT] = g_signal_new ("pre-set-format",
|
gst_v4l2_signals[SIGNAL_PRE_SET_FORMAT] = g_signal_new ("prepare-format",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -218,7 +218,7 @@ gst_v4l2src_set_capture (GstV4l2Src * v4l2src, guint32 pixelformat,
|
||||||
if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G'))
|
if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G'))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
g_signal_emit_by_name (v4l2src, "pre-set-format",
|
g_signal_emit_by_name (v4l2src, "prepare-format",
|
||||||
v4l2src->v4l2object->video_fd, pixelformat, width, height);
|
v4l2src->v4l2object->video_fd, pixelformat, width, height);
|
||||||
|
|
||||||
if (!gst_v4l2_object_set_format (v4l2src->v4l2object, pixelformat, width,
|
if (!gst_v4l2_object_set_format (v4l2src->v4l2object, pixelformat, width,
|
||||||
|
|
Loading…
Reference in a new issue