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 672610 - camerabin2: check negotiated caps avoid reseting of the pipe
camerabin2: check negotiated caps avoid reseting of the pipe
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-22 07:53 UTC by Oleksij Rempel
Modified: 2015-03-04 11:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch v1 (3.94 KB, patch)
2012-03-22 07:53 UTC, Oleksij Rempel
none Details | Review
patch v2 (3.98 KB, patch)
2012-03-22 08:11 UTC, Oleksij Rempel
none Details | Review
patch v3 (5.44 KB, patch)
2012-03-22 08:56 UTC, Oleksij Rempel
none Details | Review
camerabin2: check negotiated caps avoid reseting of the pipe (5.95 KB, patch)
2012-04-26 21:16 UTC, Thiago Sousa Santos
none Details | Review
camerabin2: check negotiated caps avoid reseting of the pipe (5.92 KB, patch)
2012-04-27 01:08 UTC, Thiago Sousa Santos
none Details | Review

Description Oleksij Rempel 2012-03-22 07:53:18 UTC
Created attachment 210308 [details] [review]
patch v1

To avoid useless renegotiation of the pipe we can check for
negotiated caps on src_filter and compare it with requested
filter. If the caps intersect, avoid restart.
Comment 1 Oleksij Rempel 2012-03-22 08:11:33 UTC
Created attachment 210309 [details] [review]
patch v2

changes:
- make sure caps are present, before compare it.
Comment 2 Oleksij Rempel 2012-03-22 08:56:37 UTC
Created attachment 210314 [details] [review]
patch v3

changelog:
- avoid reset if capsfilter set to ANY and new caps set to NULL
- rename variables to make clear what kind of caps do we process.
Comment 3 Thiago Sousa Santos 2012-04-26 21:16:39 UTC
Created attachment 212913 [details] [review]
camerabin2: check negotiated caps avoid reseting of the pipe

Version with 2 improvements
1) Fix pad leak introduced in the v3 patch
2) Only avoid resetting when the caps is fixed and can be intersected.

The reason behind 2 is that we want to force a renegotiation in cases that
there might be a new order of preferred caps. Even if one of them intersect,
we want to make the source decide using the given order of the structures.
Comment 4 Thiago Sousa Santos 2012-04-27 01:08:08 UTC
Created attachment 212923 [details] [review]
camerabin2: check negotiated caps avoid reseting of the pipe

Same as above, but fixes a caps unref issue

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 5 Thiago Sousa Santos 2015-03-04 11:27:43 UTC
commit e8a3973b8f712cb660fa9675c80c2fd3031acdb2
Author: Oleksij Rempel <bug-track@fisher-privat.net>
Date:   Thu Mar 22 08:47:57 2012 +0100

    camerabin2: check negotiated caps avoid reseting of the pipe
    
    To avoid useless renegotiation of the pipe we can check for
    negotiated caps on src_filter and compare it with requested
    filter. If the caps intersect, avoid restart.
    
    Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672610