mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
v4l2videodec: Coding style fixes
This commit is contained in:
parent
e31c6aa427
commit
a0a590369a
1 changed files with 5 additions and 5 deletions
|
@ -489,7 +489,7 @@ gst_v4l2_video_dec_loop_stopped (GstV4l2VideoDec * self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_v4l2_video_remove_padding(GstCapsFeatures * features,
|
gst_v4l2_video_remove_padding (GstCapsFeatures * features,
|
||||||
GstStructure * structure, gpointer user_data)
|
GstStructure * structure, gpointer user_data)
|
||||||
{
|
{
|
||||||
GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (user_data);
|
GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (user_data);
|
||||||
|
@ -497,10 +497,10 @@ gst_v4l2_video_remove_padding(GstCapsFeatures * features,
|
||||||
GstVideoInfo *info = &self->v4l2capture->info;
|
GstVideoInfo *info = &self->v4l2capture->info;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
if (!gst_structure_get_int(structure, "width", &width))
|
if (!gst_structure_get_int (structure, "width", &width))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (!gst_structure_get_int(structure, "height", &height))
|
if (!gst_structure_get_int (structure, "height", &height))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (align->padding_left != 0 || align->padding_top != 0 ||
|
if (align->padding_left != 0 || align->padding_top != 0 ||
|
||||||
|
@ -508,7 +508,7 @@ gst_v4l2_video_remove_padding(GstCapsFeatures * features,
|
||||||
height != info->height + align->padding_bottom)
|
height != info->height + align->padding_bottom)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
gst_structure_set(structure,
|
gst_structure_set (structure,
|
||||||
"width", G_TYPE_INT, width - align->padding_right,
|
"width", G_TYPE_INT, width - align->padding_right,
|
||||||
"height", G_TYPE_INT, height - align->padding_bottom, NULL);
|
"height", G_TYPE_INT, height - align->padding_bottom, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue