nvencoder: Fix operator overloading
GUID equality check was inverted Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2107>
This commit is contained in:
parent
296094508e
commit
9b5fe81d01
@ -157,7 +157,7 @@ G_END_DECLS
|
||||
#ifndef G_OS_WIN32
|
||||
inline bool is_equal_guid(const GUID & lhs, const GUID & rhs)
|
||||
{
|
||||
return !!memcmp(&lhs, &rhs, sizeof (GUID));
|
||||
return memcmp(&lhs, &rhs, sizeof (GUID)) == 0;
|
||||
}
|
||||
|
||||
inline bool operator==(const GUID & lhs, const GUID & rhs)
|
||||
@ -167,7 +167,7 @@ inline bool operator==(const GUID & lhs, const GUID & rhs)
|
||||
|
||||
inline bool operator!=(const GUID & lhs, const GUID & rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
return !is_equal_guid(lhs, rhs);
|
||||
}
|
||||
#endif /* G_OS_WIN32 */
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
Loading…
x
Reference in New Issue
Block a user