Guest User

Untitled

a guest
Jan 21st, 2018
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. From 49d5c341acc7447b760f90960f7bdc905380f210 Mon Sep 17 00:00:00 2001
  2. From: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
  3. Date: Thu, 13 Oct 2011 10:45:36 +0100
  4. Subject: [PATCH 2/3] video-sink: silent warning on comparison
  5.  
  6. ---
  7. clutter-gst/clutter-gst-video-sink.c | 4 ++--
  8. 1 files changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
  11. index 39f4de8..22a5a2f 100644
  12. --- a/clutter-gst/clutter-gst-video-sink.c
  13. +++ b/clutter-gst/clutter-gst-video-sink.c
  14. @@ -1101,12 +1101,12 @@ clutter_gst_video_sink_set_caps (GstBaseSink *bsink,
  15. if (mask < 0x1000000)
  16. {
  17. priv->format = CLUTTER_GST_RGB24;
  18. - priv->bgr = (red_mask == 0xff0000) ? FALSE : TRUE;
  19. + priv->bgr = ((guint) red_mask == 0xff0000) ? FALSE : TRUE;
  20. }
  21. else
  22. {
  23. priv->format = CLUTTER_GST_RGB32;
  24. - priv->bgr = (red_mask == 0xff000000) ? FALSE : TRUE;
  25. + priv->bgr = ((guint) red_mask == 0xff000000) ? FALSE : TRUE;
  26. }
  27. }
  28.  
  29. --
  30. 1.7.6.3
Add Comment
Please, Sign In to add comment