<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks, this is cleaner solution. What I'm doing looks bad, but works somehow.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
regards</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Oleg K.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nirbheek Chauhan <nirbheek.chauhan@gmail.com><br>
<b>Sent:</b> Friday, October 15, 2021 3:40 PM<br>
<b>To:</b> Oleg Konovalov <oleg.konovalov@seraphimas-hls.com><br>
<b>Cc:</b> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: get rtcp packets from gst-rtsp-server</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Thu, Oct 14, 2021 at 11:44 AM Oleg Konovalov<br>
<oleg.konovalov@seraphimas-hls.com> wrote:<br>
> But this looks kind of a workaround. But it is OK for me while testing some algo.<br>
> If someone can provide a "right" solution without spending too much time would be interesting to know.<br>
><br>
<br>
You can also do something like: gst_rtsp_media_get_element(), then<br>
look at the element's parent(s) to get the pipeline for the media, and<br>
then iterate elements inside that till you find the rtpbin, then look<br>
for the rtcp srcpad(s) and add pad probes there. Should work fine. Not<br>
sure if this is cleaner than what you are doing right now, though :-)<br>
<br>
Cheers,<br>
Nirbheek<br>
</div>
</span></font></div>
</body>
</html>