[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] logical error in swfdec_codec_gst.c ?
From: |
Sandro Santilli |
Subject: |
[Gnash-dev] logical error in swfdec_codec_gst.c ? |
Date: |
Mon, 30 Jan 2017 17:54:46 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hi Bastiaan, I'm looking at a warning from the compiler while
building Gnash, and both do seem to be logical errors in code
you seem to have added (or ported/copied):
libmedia/gst/swfdec_codec_gst.c:271:60: warning: logical not is only applied
to the left hand side of comparison [-Wlogical-not-parentheses]
if (!gst_element_set_state (dec->bin, GST_STATE_PLAYING) ==
GST_STATE_CHANGE_SUCCESS) {
^
libmedia/gst/swfdec_codec_gst.c:329:60: warning: logical not is only applied
to the left hand side of comparison [-Wlogical-not-parentheses]
if (!gst_element_set_state (dec->bin, GST_STATE_PLAYING) ==
GST_STATE_CHANGE_SUCCESS) {
^
Does that sound as it should be instead:
gst_element_set_state (dec->bin, GST_STATE_PLAYING) !=
GST_STATE_CHANGE_SUCCESS
Please share your thoughts, thank you
--strk;
- [Gnash-dev] logical error in swfdec_codec_gst.c ?,
Sandro Santilli <=