After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736939 - gl: logical disjunction consecutive return, break statements
gl: logical disjunction consecutive return, break statements
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.x
Other Linux
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-19 04:40 UTC by Anuj
Modified: 2014-09-22 06:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gl: logical disjunction consecutive return, break statements (1.02 KB, patch)
2014-09-19 04:40 UTC, Anuj
needs-work Details | Review
gl: logical disjunction consecutive return, break statements (872 bytes, patch)
2014-09-19 08:19 UTC, Anuj
none Details | Review
gl: logical disjunction consecutive return, break statements (774 bytes, patch)
2014-09-22 04:49 UTC, Anuj
rejected Details | Review
gl: logical disjunction consecutive return, break statements (774 bytes, patch)
2014-09-22 05:17 UTC, Anuj
none Details | Review
gl: logical disjunction consecutive return, break statements (782 bytes, patch)
2014-09-22 06:08 UTC, Anuj
committed Details | Review

Description Anuj 2014-09-19 04:40:33 UTC
Created attachment 286560 [details] [review]
gl: logical disjunction consecutive return, break statements

gl: logical disjunction consecutive return, break statements
Comment 1 Matthew Waters (ystreet00) 2014-09-19 07:15:18 UTC
Review of attachment 286560 [details] [review]:

One issue :)

::: gst-libs/gst/gl/gstglfilter.c
@@ -225,3 @@
           && gst_base_transform_is_passthrough (trans))
         return gst_pad_peer_query (GST_BASE_TRANSFORM_SRC_PAD (trans), query);
-      break;

This will fallthrough to the GST_QUERY_CONTEXT case when not in passthrough mode.
Comment 2 Anuj 2014-09-19 08:19:44 UTC
Created attachment 286596 [details] [review]
gl: logical disjunction consecutive return, break statements

thanks for the review made changes as suggested. please review.
Comment 3 Matthew Waters (ystreet00) 2014-09-19 08:39:01 UTC
Ah, you might want to merge the two patches together :)
Comment 4 Anuj 2014-09-19 08:45:47 UTC
Its on your discretion :)
If you want I can make a single one too but it will be wastage time in that case :)
Comment 5 Matthew Waters (ystreet00) 2014-09-19 11:24:51 UTC
Please make a single patch.
Comment 6 Anuj 2014-09-22 04:49:43 UTC
Created attachment 286768 [details] [review]
gl: logical disjunction consecutive return, break statements

Merged both the patches together to single one as suggested. Please review.
Thanks.
Comment 7 Matthew Waters (ystreet00) 2014-09-22 05:04:25 UTC
Review of attachment 286768 [details] [review]:

That's not the result of a merge of those two patches.  It should simply be the removal of the break; in the GST_QUERY_CONTEXT case.
Comment 8 Anuj 2014-09-22 05:17:48 UTC
Created attachment 286769 [details] [review]
gl: logical disjunction consecutive return, break statements

Done as suggested.
Thanks
Comment 9 Matthew Waters (ystreet00) 2014-09-22 05:41:12 UTC
(In reply to comment #8)
> Created an attachment (id=286769) [details] [review]
> gl: logical disjunction consecutive return, break statements
> 
> Done as suggested.
> Thanks

That's exactly the same as attachment 286768 [details] [review]
Comment 10 Anuj 2014-09-22 06:08:09 UTC
Created attachment 286776 [details] [review]
gl: logical disjunction consecutive return, break statements

There was some error in my repo so the previous patch was a duplicate one sorry for that.
Made changes as suggested please review. 
Thanks.
Comment 11 Matthew Waters (ystreet00) 2014-09-22 06:18:59 UTC
commit d153b01280c9d0658e1f66a2a4ff07477c842e8c
Author: Anuj Jaiswal <anuj.jaiswal@samsung.com>
Date:   Mon Sep 22 11:10:42 2014 +0530

    gl: consecutive return, break statement
    
    Signed-off-by: Anuj Jaiswal <anuj.jaiswal@samsung.com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736939