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 635202 - mpeg4videoparse: Minor fixes
mpeg4videoparse: Minor fixes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 0.10.21
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-18 18:12 UTC by Arun Raghavan
Modified: 2010-12-08 12:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpeg4videoparse: Minor fix to error handling (1.86 KB, patch)
2010-11-18 18:12 UTC, Arun Raghavan
none Details | Review
mpeg4videoparse: Use sinkpad caps as base for srcpad caps (1.25 KB, patch)
2010-11-18 18:12 UTC, Arun Raghavan
none Details | Review
mpeg4videoparse: Use sinkpad caps as base for srcpad caps (2.31 KB, patch)
2010-11-18 18:58 UTC, Arun Raghavan
none Details | Review
mpeg4videoparse: Use sinkpad caps as base for srcpad caps (2.31 KB, patch)
2010-11-18 18:58 UTC, Arun Raghavan
none Details | Review
mpeg4videoparse: minor fix to error handling (1.34 KB, patch)
2010-12-07 14:34 UTC, Mark Nauwelaerts
committed Details | Review
mpeg4videoparse: Use sinkpad caps as base for srcpad caps (2.36 KB, patch)
2010-12-07 14:35 UTC, Mark Nauwelaerts
committed Details | Review

Description Arun Raghavan 2010-11-18 18:12:50 UTC
A couple of fixes to mpeg4videoparse. The first of these improves error handling. The second passes on sinkpad caps onto the srcpad (and adds/overrides fields as before) to make sure we don't lose any fields set from upstream.
Comment 1 Arun Raghavan 2010-11-18 18:12:53 UTC
Created attachment 174790 [details] [review]
mpeg4videoparse: Minor fix to error handling

We weren't handling unparseable codec_data in some cases.
Comment 2 Arun Raghavan 2010-11-18 18:12:58 UTC
Created attachment 174791 [details] [review]
mpeg4videoparse: Use sinkpad caps as base for srcpad caps

This way, we don't lose additional fields that come from upstream (like
profile/level for now).
Comment 3 Arun Raghavan 2010-11-18 18:57:31 UTC
Comment on attachment 174791 [details] [review]
mpeg4videoparse: Use sinkpad caps as base for srcpad caps

This one's bad (GST_PAD_CAPS may return NULL). Attaching a fixed version.
Comment 4 Arun Raghavan 2010-11-18 18:58:45 UTC
Created attachment 174797 [details] [review]
mpeg4videoparse: Use sinkpad caps as base for srcpad caps

This way, we don't lose additional fields that come from upstream (like
profile/level for now).
Comment 5 Arun Raghavan 2010-11-18 18:58:56 UTC
Created attachment 174798 [details] [review]
mpeg4videoparse: Use sinkpad caps as base for srcpad caps

This way, we don't lose additional fields that come from upstream (like
profile/level for now).
Comment 6 Mark Nauwelaerts 2010-12-07 14:34:24 UTC
Created attachment 176010 [details] [review]
mpeg4videoparse: minor fix to error handling

How about this for error handling; it avoids a possibly confusing message going on about "no start code" when there may be one (though later parsing fails).
Comment 7 Mark Nauwelaerts 2010-12-07 14:35:45 UTC
Created attachment 176011 [details] [review]
mpeg4videoparse: Use sinkpad caps as base for srcpad caps

A slightly safer version of the previous one.
Comment 8 Arun Raghavan 2010-12-08 11:26:30 UTC
Comment on attachment 174790 [details] [review]
mpeg4videoparse: Minor fix to error handling

Heh, don't know what I was thinking - Mark's version is clearly simpler.
Comment 9 Arun Raghavan 2010-12-08 11:28:41 UTC
++ to both from me, fwiw.
Comment 10 Mark Nauwelaerts 2010-12-08 12:41:18 UTC
commit acc8730de8b7e0a20bc15c2ce4f214256c8a9fee
Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
Date:   Thu Nov 18 23:29:51 2010 +0530

    mpeg4videoparse: Use sinkpad caps as base for srcpad caps
    
    This way, we don't lose additional fields that come from upstream (like
    profile/level for now).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=635202

commit e7fe665403f29ca48497c1fff18205fb447242f6
Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date:   Tue Dec 7 15:20:29 2010 +0100

    mpeg4videoparse: minor fix to error handling
    
    We weren't handling unparseable codec_data in some cases.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=635202