Accept self-signed certificate in https:// stream

This commit is contained in:
Alan Briolat 2012-07-28 13:08:35 +01:00
parent 532185c15e
commit 6c8d1b25b7
1 changed files with 6 additions and 0 deletions

View File

@ -726,6 +726,12 @@ void GstEnginePipeline::SourceSetupCallback(GstURIDecodeBin* bin, GParamSpec *ps
g_object_set(element, "extra-headers", headers, NULL);
gst_structure_free(headers);
}
if (element &&
g_object_class_find_property(G_OBJECT_GET_CLASS(element), "accept-self-signed")) {
// Can't always rely on HTTPS streams to have a valid 3rd-party-signed
// certificate, so tell neonhttpsrc to accept self-signed certificates.
g_object_set(element, "accept-self-signed", true, NULL);
}
}
void GstEnginePipeline::TransitionToNext() {