gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] logical error in swfdec_codec_gst.c ?


From: Bastiaan Jacques
Subject: Re: [Gnash-dev] logical error in swfdec_codec_gst.c ?
Date: Tue, 31 Jan 2017 15:29:55 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Hi Sandro,

Your proposed change looks good to me.

Cheers,

Bastiaan

On Mon, 30 Jan 2017, Sandro Santilli wrote:

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]