rtspsrc with ip camera LTV

KnightUS pc-sux at mail.ru
Wed Oct 5 05:42:39 UTC 2016


It works! Thank you :)

......
g_signal_connect (m_rtspSrc, "select-stream", G_CALLBACK
(rtspOnSelectStream), this);
......

gboolean RtspClientPrivate::rtspOnSelectStream(GstElement* /*object*/, guint
/*arg0*/, GstCaps* arg1, gpointer /*user_data*/)
{
    const QString ret(gst_structure_get_string (gst_caps_get_structure
(arg1, 0), "media"));
    if (ret == "video" || ret == "audio")
       return true;
    return false;
}



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtspsrc-with-ip-camera-LTV-tp4679927p4679945.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list