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 765082 - mikey: add new function gst_mikey_message_to_caps
mikey: add new function gst_mikey_message_to_caps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.8.0
Other Linux
: Normal enhancement
: 1.8.1
Assigned To: Josep Torra Valles
GStreamer Maintainers
: 765083 (view as bug list)
Depends on:
Blocks: 730540
 
 
Reported: 2016-04-15 06:31 UTC by Aleix Conchillo Flaqué
Modified: 2016-04-19 15:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
new function gst_mikey_message_to_caps (5.38 KB, patch)
2016-04-15 06:31 UTC, Aleix Conchillo Flaqué
none Details | Review
new function gst_mikey_message_to_caps (5.38 KB, patch)
2016-04-15 06:43 UTC, Aleix Conchillo Flaqué
none Details | Review
new function gst_mikey_message_to_caps (9.58 KB, patch)
2016-04-15 07:22 UTC, Aleix Conchillo Flaqué
committed Details | Review
new gst_sdp_message_parse_keymgmt/gst_sdp_media_parse_keymgmt (6.52 KB, patch)
2016-04-15 07:24 UTC, Aleix Conchillo Flaqué
committed Details | Review

Description Aleix Conchillo Flaqué 2016-04-15 06:31:06 UTC
Created attachment 326061 [details] [review]
new function gst_mikey_message_to_caps

Currently there's a gst_mikey_message_new_from_caps but not the counterpart _to_caps. The _to_caps functionality is currently done in gstsdpmessage.

The idea is to move the code from gstsdpmessage to gstmikey and use the new function in gstsdpmessage.
Comment 1 Aleix Conchillo Flaqué 2016-04-15 06:43:56 UTC
Created attachment 326064 [details] [review]
new function gst_mikey_message_to_caps

s/gstmikey/mikey/ in commit log
Comment 2 Sebastian Dröge (slomo) 2016-04-15 06:45:11 UTC
Comment on attachment 326064 [details] [review]
new function gst_mikey_message_to_caps

When moving, please move it for real in a single commit instead of just duplicating the functionality :) And this bug can probably be merged with bug #765083
Comment 3 Aleix Conchillo Flaqué 2016-04-15 06:49:00 UTC
(In reply to Sebastian Dröge (slomo) from comment #2)
> Comment on attachment 326064 [details] [review] [review]
> new function gst_mikey_message_to_caps
> 
> When moving, please move it for real in a single commit instead of just
> duplicating the functionality :) And this bug can probably be merged with
> bug #765083

Argh... Actually, I had it in a single patch but thought you would prefer having two different commits.
Comment 4 Sebastian Dröge (slomo) 2016-04-15 06:51:32 UTC
One for the move, one for the new API. Both can be in the same bug :)
Comment 5 Aleix Conchillo Flaqué 2016-04-15 06:58:41 UTC
(In reply to Sebastian Dröge (slomo) from comment #4)
> One for the move, one for the new API. Both can be in the same bug :)

Problem is that the other bug has new API too...

So, the old functions in bug #765083 use the new functions in bug #765083 plus the functions in this bug.
Comment 6 Aleix Conchillo Flaqué 2016-04-15 07:22:53 UTC
Created attachment 326066 [details] [review]
new function gst_mikey_message_to_caps
Comment 7 Aleix Conchillo Flaqué 2016-04-15 07:24:25 UTC
Created attachment 326067 [details] [review]
new gst_sdp_message_parse_keymgmt/gst_sdp_media_parse_keymgmt
Comment 8 Aleix Conchillo Flaqué 2016-04-15 07:24:48 UTC
*** Bug 765083 has been marked as a duplicate of this bug. ***
Comment 9 Josep Torra Valles 2016-04-15 12:22:59 UTC
Both patches looks good to me.
Comment 10 Sebastian Dröge (slomo) 2016-04-15 13:12:41 UTC
Review of attachment 326067 [details] [review]:

Please rename, then push :)

::: gst-libs/gst/sdp/gstsdpmessage.c
@@ +3816,3 @@
+    res = GST_SDP_EINVAL;
+    if (gst_mikey_message_to_caps (mikey, caps))
+      res = sdp_addtributes_to_caps (media->attributes, caps);

addtributes? :D
Comment 11 Josep Torra Valles 2016-04-15 13:33:53 UTC
commit 28cf2f02e79676d9ecfb8806401f457d7b6f3b39
Author: Aleix Conchillo Flaqué <aconchillo@gmail.com>
Date:   Fri Apr 15 00:18:50 2016 -0700

    sdpmessage: new gst_sdp_media_parse_keymgmt/gst_sdp_media_parse_keymgmt
    
    We add a couple of new functions gst_sdp_media_parse_keymgmt and
    gst_sdp_media_parse_keymgmt. We also implement
    gst_sdp_message_attributes_to_caps and gst_sdp_media_attributes_to_caps
    in terms of these new functions and also gst_mikey_message_to_caps.

commit 7a864c177f66ab47852123227d91c7c0d3d827c1
Author: Aleix Conchillo Flaqué <aconchillo@gmail.com>
Date:   Thu Apr 14 23:29:34 2016 -0700

    mikey: add new function gst_mikey_message_to_caps