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 793776 - rtspclientsink: allow setting payloader as pad property
rtspclientsink: allow setting payloader as pad property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
unspecified
Other All
: Normal enhancement
: 1.13.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-02-24 02:54 UTC by Mathieu Duponchelle
Modified: 2018-02-26 18:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rtspclientsink: allow setting payloader as pad property (8.44 KB, patch)
2018-02-24 02:54 UTC, Mathieu Duponchelle
none Details | Review
rtspclientsink: allow setting payloader as pad property (9.32 KB, patch)
2018-02-24 18:53 UTC, Mathieu Duponchelle
none Details | Review
rtspclientsink: allow setting payloader as pad property (11.58 KB, patch)
2018-02-26 17:26 UTC, Mathieu Duponchelle
committed Details | Review

Description Mathieu Duponchelle 2018-02-24 02:54:16 UTC
This was a FIXME  item, and can be quite useful, also
allowing to specify payloader properties from the command
line, which is always nice.
Comment 1 Mathieu Duponchelle 2018-02-24 02:54:22 UTC
Created attachment 368865 [details] [review]
rtspclientsink: allow setting payloader as pad property
Comment 2 Mathieu Duponchelle 2018-02-24 18:53:52 UTC
Created attachment 368887 [details] [review]
rtspclientsink: allow setting payloader as pad property

This was a FIXME  item, and can be quite useful, also
allowing to specify payloader properties from the command
line, which is always nice.
Comment 3 Tim-Philipp Müller 2018-02-24 21:19:53 UTC
You changed the pad template name from stream_%u to sink_%u, was that on purpose?

And how about we make it a GstElement * and let parse-launch do the element creation from the string? That's more consistent with similar properties elsewhere I think? (muxer in splitmuxsink, audio-sink in playbin etc.)
Comment 4 Sebastian Dröge (slomo) 2018-02-25 15:05:40 UTC
Review of attachment 368887 [details] [review]:

::: gst/rtsp-sink/gstrtspclientsink.c
@@ +184,3 @@
+      g_param_spec_string ("payloader", "payloader factory name",
+          "The name of the payloader factory to use", NULL,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

Why as a string? We could take an actual element (gst-launch has some magic to allow any parse-launch string then) here instead

@@ +1283,3 @@
+        /* User-specified payloader, which we haven't constructed yet,
+         * caps could be any */
+        caps = gst_caps_new_any ();

Then this could also take the caps :)
Comment 5 Mathieu Duponchelle 2018-02-25 15:38:55 UTC
(In reply to Tim-Philipp Müller from comment #3)
> You changed the pad template name from stream_%u to sink_%u, was that on
> purpose?


Ah right, included it in this commit, the actual request code names them with the sink_%u format, thought that should be corrected


> Why as a string? We could take an actual element (gst-launch has some magic to allow any parse-launch string then) here instead

Ah, didn't know about the magic, will fix!
Comment 6 Mathieu Duponchelle 2018-02-26 17:26:22 UTC
Created attachment 368954 [details] [review]
rtspclientsink: allow setting payloader as pad property

This was a FIXME  item, and can be quite useful, also
allowing to specify payloader properties from the command
line, which is always nice.
Comment 7 Mathieu Duponchelle 2018-02-26 18:33:28 UTC
Attachment 368954 [details] pushed as 731c464 - rtspclientsink: allow setting payloader as pad property