Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <gst/base/gstpushsrc.h>
- struct SoupURI;
- struct SoupSrc {
- GstPushSrc element;
- gchar* location;
- gchar* user_agent;
- gboolean automatic_redirect;
- SoupURI* proxy;
- };
- void GstEnginePipeline::NotifySourceCallback(
- GObject* object, GParamSpec* param, gpointer self) {
- if (g_object_class_find_property(G_OBJECT_GET_CLASS(object), "source")) {
- GObject* source_element = NULL;
- g_object_get(object, "source", &source_element, NULL);
- if (g_object_class_find_property(G_OBJECT_GET_CLASS(source_element), "proxy")) {
- gchar* proxy = NULL;
- g_object_get(source_element, "proxy", &proxy, NULL);
- qDebug() << "Proxy:" << proxy;
- ((SoupSrc*)source_element)->proxy = NULL;
- g_object_get(source_element, "proxy", &proxy, NULL);
- qDebug() << "Proxy:" << proxy;
- }
- g_object_unref(source_element);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement