mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-26 07:56:38 +00:00
tracer: dots: Check that pipeline-snapshot::dots-viewer-ws-url
exists
It is a very new property and the tracer should still be usable if that property doesn't exist Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8547>
This commit is contained in:
parent
30a00b6a97
commit
6d83673132
1 changed files with 10 additions and 2 deletions
|
@ -199,9 +199,17 @@ Please ensure GStreamer is properly installed.");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
self->pipeline_snapshot_tracer = g_object_new (gst_tracer_factory_get_tracer_type (factory), "dot-dir", self->output_dir, "dots-viewer-ws-url", "ws://127.0.0.1:3000/snapshot/", "folder-mode", 1, /*numbered */
|
GType tracer_type = gst_tracer_factory_get_tracer_type (factory);
|
||||||
NULL);
|
GObjectClass *tracer_class = g_type_class_ref (tracer_type);
|
||||||
|
|
||||||
|
if (g_object_class_find_property (tracer_class, "dots-viewer-ws-url"))
|
||||||
|
self->pipeline_snapshot_tracer = g_object_new (gst_tracer_factory_get_tracer_type (factory), "dot-dir", self->output_dir, "dots-viewer-ws-url", "ws://127.0.0.1:3000/snapshot/", "folder-mode", 1, /*numbered */
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
self->pipeline_snapshot_tracer =
|
||||||
|
g_object_new (gst_tracer_factory_get_tracer_type (factory), NULL);
|
||||||
gst_object_unref (factory);
|
gst_object_unref (factory);
|
||||||
|
g_type_class_unref (tracer_class);
|
||||||
|
|
||||||
if (!self->pipeline_snapshot_tracer) {
|
if (!self->pipeline_snapshot_tracer) {
|
||||||
GST_WARNING ("Could not create pipeline-snapshot tracer instance");
|
GST_WARNING ("Could not create pipeline-snapshot tracer instance");
|
||||||
|
|
Loading…
Reference in a new issue