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
@ -1426,7 +1426,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
|||||||
xcontext->adaptors[i] = g_strdup (adaptors[i].name);
|
xcontext->adaptors[i] = g_strdup (adaptors[i].name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xvimagesink->adaptor_no >= 0 &&
|
if (xvimagesink->adaptor_no != -1 &&
|
||||||
xvimagesink->adaptor_no < xcontext->nb_adaptors) {
|
xvimagesink->adaptor_no < xcontext->nb_adaptors) {
|
||||||
/* Find xv port from user defined adaptor */
|
/* Find xv port from user defined adaptor */
|
||||||
gst_lookup_xv_port_from_adaptor (xcontext, adaptors,
|
gst_lookup_xv_port_from_adaptor (xcontext, adaptors,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user