mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ G_END_DECLS
|
||||||
#ifndef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
inline bool is_equal_guid(const GUID & lhs, const GUID & rhs)
|
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)
|
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)
|
inline bool operator!=(const GUID & lhs, const GUID & rhs)
|
||||||
{
|
{
|
||||||
return !(lhs == rhs);
|
return !is_equal_guid(lhs, rhs);
|
||||||
}
|
}
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
Loading…
Reference in a new issue