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 774484 - videodecoder, audiodecoder: parse format before checking in src_query_default
videodecoder, audiodecoder: parse format before checking in src_query_default
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-15 17:36 UTC by Scott D Phillips
Modified: 2016-11-15 23:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH gst-plugins-base] audiodecoder: parse format before checking in src_query_default (1.53 KB, patch)
2016-11-15 17:37 UTC, Scott D Phillips
none Details | Review
[PATCH gst-plugins-base v2] videodecoder, audiodecoder: parse format before checking in src_query_default (2.68 KB, patch)
2016-11-15 17:43 UTC, Scott D Phillips
none Details | Review

Description Scott D Phillips 2016-11-15 17:36:28 UTC
The logic change in this commit misordered the parsing and checking of
format in position queries:

 1840b02 audio: Don't answer BYTES queries
Comment 1 Scott D Phillips 2016-11-15 17:37:42 UTC
Created attachment 339953 [details] [review]
[PATCH gst-plugins-base] audiodecoder: parse format before checking in src_query_default
Comment 2 Scott D Phillips 2016-11-15 17:43:38 UTC
Created attachment 339954 [details] [review]
[PATCH gst-plugins-base v2] videodecoder, audiodecoder: parse format before checking in src_query_default
Comment 3 Jan Schmidt 2016-11-15 21:00:10 UTC
Thanks! Not entirely sure why gcc didn't warn me about such an obvious use of uninitialised variable though :-/

commit e740103669b739f1f43879ff683125b0c0b557c2
Author: Scott D Phillips <scott.d.phillips@intel.com>
Date:   Tue Nov 15 09:32:24 2016 -0800

    videodecoder, audiodecoder: parse format before checking in src_query_default
    
    The logic change in these commits misordered the parsing and checking of
    format in position queries:
    
     2b06e54 videodecoder: Don't answer BYTES queries
     1840b02 audio: Don't answer BYTES queries
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774484
Comment 4 Scott D Phillips 2016-11-15 23:13:35 UTC
(In reply to Jan Schmidt from comment #3)
> Thanks! Not entirely sure why gcc didn't warn me about such an obvious use
> of uninitialised variable though :-/

I spent some time puzzling over that and I think that it is a gcc bug. I've filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78370 for this.