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 628326 - vdpau: don't change structure in setcaps function
vdpau: don't change structure in setcaps function
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-08-30 13:37 UTC by Thijs Vermeir
Modified: 2010-09-06 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vdpau: don't change structure in setcaps function (1.18 KB, patch)
2010-08-30 13:37 UTC, Thijs Vermeir
none Details | Review

Description Thijs Vermeir 2010-08-30 13:37:42 UTC
It's not allowed (and not needed) to change the caps
(via the structure) provided by the setcaps function.
Comment 1 Thijs Vermeir 2010-08-30 13:37:44 UTC
Created attachment 169057 [details] [review]
vdpau: don't change structure in setcaps function
Comment 2 Lauri Mylläri 2010-09-03 18:16:47 UTC
Aren't the structure changes needed to set the source pad to double framerate progressive video if input is interlaced and deinterlacing is enabled?

I think video_caps (which is accessed through the structure) should be a copy of caps, not a reference to it. Replacing gst_caps_ref() with gst_caps_copy() on line 496 seems to work for me. Is this correct?
Comment 3 Carl-Anton Ingmarsson 2010-09-05 14:46:45 UTC
I've commited a slightly different fix which is keeping the framerate doubling.
Comment 4 Tim-Philipp Müller 2010-09-06 09:55:53 UTC
> I've commited a slightly different fix which is keeping the framerate doubling.

Have you pushed that yet? If yes, what commit was it?
Comment 5 Carl-Anton Ingmarsson 2010-09-06 10:26:46 UTC
Just pushed it as b2ce3aab96f924c4d7f5fcbdad2a78682f4ce4ee.
Comment 6 Tim-Philipp Müller 2010-09-06 10:38:05 UTC
commit b2ce3aab96f924c4d7f5fcbdad2a78682f4ce4ee
Author: Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Date:   Sun Sep 5 16:30:05 2010 +0200

    vdpauvideopostprocess: set new framerate on output caps instead of input caps
    
    It's not allowed to change the caps provided by the setcaps function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=628326