mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
glupload: Fix always true compiler warning
There was an if case that was always true. After re-reading the Khronos spec, this case is actually undefined. It is better to just always ignore the format. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5410>
This commit is contained in:
parent
ae7871c019
commit
63da298b84
1 changed files with 3 additions and 6 deletions
|
@ -749,13 +749,10 @@ _append_drm_formats_from_video_format (GstGLContext * context,
|
||||||
&dma_modifiers))
|
&dma_modifiers))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* No modifier info, we just consider it as linear and external_only. */
|
/* No modifier info, lets warn and move on */
|
||||||
if (!dma_modifiers) {
|
if (!dma_modifiers) {
|
||||||
if (flags | INCLUDE_EXTERNAL) {
|
GST_WARNING_OBJECT (context, "Undefined modifiers list for %"
|
||||||
drm_format =
|
GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
||||||
gst_video_dma_drm_fourcc_to_string (fourcc, DRM_FORMAT_MOD_LINEAR);
|
|
||||||
g_ptr_array_add (drm_formats, drm_format);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue