mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
xvimagesink: Fix 'comparison of unsigned expression >= 0 is always true'
-1 aka 0xffffffff is the only possible 'negative' value that is used as a special value for 'not set' here. All other positive values are valid.
This commit is contained in:
parent
1af6f94d84
commit
c2dc843c7e
1 changed files with 1 additions and 1 deletions
|
@ -1426,7 +1426,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
|||
xcontext->adaptors[i] = g_strdup (adaptors[i].name);
|
||||
}
|
||||
|
||||
if (xvimagesink->adaptor_no >= 0 &&
|
||||
if (xvimagesink->adaptor_no != -1 &&
|
||||
xvimagesink->adaptor_no < xcontext->nb_adaptors) {
|
||||
/* Find xv port from user defined adaptor */
|
||||
gst_lookup_xv_port_from_adaptor (xcontext, adaptors,
|
||||
|
|
Loading…
Reference in a new issue