mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
gst: src: Indentation fix
Fixes: f400ff205 (gst: Check for video/ caps before parsing for info)
This commit is contained in:
parent
68711290bd
commit
adead74e8c
1 changed files with 16 additions and 16 deletions
|
|
@ -1045,24 +1045,24 @@ handle_format_change (GstPipeWireSrc *pwsrc,
|
||||||
pwsrc->is_video = TRUE;
|
pwsrc->is_video = TRUE;
|
||||||
|
|
||||||
#ifdef HAVE_GSTREAMER_DMA_DRM
|
#ifdef HAVE_GSTREAMER_DMA_DRM
|
||||||
if (gst_video_is_dma_drm_caps (pwsrc->caps)) {
|
if (gst_video_is_dma_drm_caps (pwsrc->caps)) {
|
||||||
if (!gst_video_info_dma_drm_from_caps (&pwsrc->drm_info, pwsrc->caps)) {
|
if (!gst_video_info_dma_drm_from_caps (&pwsrc->drm_info, pwsrc->caps)) {
|
||||||
GST_WARNING_OBJECT (pwsrc, "Can't create drm video info from caps");
|
GST_WARNING_OBJECT (pwsrc, "Can't create drm video info from caps");
|
||||||
pw_stream_set_error (pwsrc->stream, -EINVAL, "internal error");
|
pw_stream_set_error (pwsrc->stream, -EINVAL, "internal error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gst_video_info_dma_drm_to_video_info (&pwsrc->drm_info,
|
if (!gst_video_info_dma_drm_to_video_info (&pwsrc->drm_info,
|
||||||
&pwsrc->video_info)) {
|
&pwsrc->video_info)) {
|
||||||
GST_WARNING_OBJECT (pwsrc, "Can't create video info from drm video info");
|
GST_WARNING_OBJECT (pwsrc, "Can't create video info from drm video info");
|
||||||
pw_stream_set_error (pwsrc->stream, -EINVAL, "internal error");
|
pw_stream_set_error (pwsrc->stream, -EINVAL, "internal error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gst_video_info_dma_drm_init (&pwsrc->drm_info);
|
gst_video_info_dma_drm_init (&pwsrc->drm_info);
|
||||||
#endif
|
#endif
|
||||||
gst_video_info_from_caps (&pwsrc->video_info,
|
gst_video_info_from_caps (&pwsrc->video_info,
|
||||||
pwsrc->caps);
|
pwsrc->caps);
|
||||||
}
|
}
|
||||||
#ifdef HAVE_GSTREAMER_DMA_DRM
|
#ifdef HAVE_GSTREAMER_DMA_DRM
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue