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 719635 - rtspsrc: provide 'control' attribute from SDP in new pad caps
rtspsrc: provide 'control' attribute from SDP in new pad caps
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-01 13:00 UTC by Andrey Utkin
Modified: 2014-01-07 13:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (792 bytes, patch)
2013-12-01 13:01 UTC, Andrey Utkin
rejected Details | Review

Description Andrey Utkin 2013-12-01 13:00:47 UTC
Patch changes original intended behaviour. But this attribute is useful for identifying the elementary stream.

---8<---

Appears as 'a-control' key in caps structure.
---
 gst/rtsp/gstrtspsrc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index d363f2b..29f077f 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -1597,8 +1597,6 @@ gst_rtspsrc_sdp_attributes_to_caps (GArray * attributes, GstCaps * caps)
         continue;
       if (!strcmp (key, "rtpmap"))
         continue;
-      if (!strcmp (key, "control"))
-        continue;
       if (!strcmp (key, "range"))
         continue;
 
-- 
1.8.1.5
Comment 1 Andrey Utkin 2013-12-01 13:01:26 UTC
Created attachment 263231 [details] [review]
patch
Comment 2 Andrey Utkin 2013-12-09 09:42:23 UTC
Up. Any interest?
Comment 3 Andrey Utkin 2013-12-27 17:15:42 UTC
Up.
Comment 4 Sebastian Dröge (slomo) 2014-01-03 09:24:22 UTC
Wim, what do you think? Does this make sense?
Comment 5 Wim Taymans 2014-01-07 13:08:13 UTC
(In reply to comment #4)
> Wim, what do you think? Does this make sense?

I don't think we want to start adding those fields of the SDP on the caps, we only want to add those fields that describe the media type of the buffer. If anything, those extra things should be on pad properties or so.

As an alternative I would suggest to use the on-sdp signal and the pt of the stream to derive the control url.
Comment 6 Andrey Utkin 2014-01-07 13:23:47 UTC
(In reply to comment #5)
> I don't think we want to start adding those fields of the SDP on the caps, we
> only want to add those fields that describe the media type of the buffer. If
> anything, those extra things should be on pad properties or so.

Readable property of pad would be useful, but it doesn't look like good idea to extend GstPad properties set for such case. I mean property would be unused in prevailing majority of cases. Passing this info in caps does not require extending fixed interfaces, which is better.

> As an alternative I would suggest to use the on-sdp signal

"To use on-sdp signal" is orthogonal to this. When you have caught on-sdp signal, you may still have to figure out which exactly stream it is, by matching with some parameter which _user_can_set_.

> and the pt of the stream to derive the control url.

Payload type number may not help. What about having two audio tracks, both of same audio encoding with staticically IANA-assigned payload type? You can see there's a lot of such: http://en.wikipedia.org/wiki/RTP_audio_video_profile#RTP.2FAVP_audio_and_video_payload_types