orc/backport-Fix-default-target-selection-not-applying-when-retrieving-it-by-name.patch

28 lines
798 B
Diff
Raw Permalink Normal View History

2024-08-26 16:33:35 +08:00
From c8bdf23ec956e6ed3f3b7ca2aeae6df7e8ef0b0f Mon Sep 17 00:00:00 2001
From: "L. E. Segovia" <amy@centricular.com>
Date: Sat, 27 Jan 2024 13:43:00 -0300
Subject: [PATCH] orctarget: Fix default target selection not applying when
retrieving it by name
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/157>
---
orc/orcopcodes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orc/orcopcodes.c b/orc/orcopcodes.c
index 3491461d..1d7f0515 100644
--- a/orc/orcopcodes.c
+++ b/orc/orcopcodes.c
@@ -62,7 +62,7 @@ orc_target_get_by_name (const char *name)
{
int i;
- if (name == NULL) return default_target;
+ if (name == NULL) return orc_target_get_default();
for(i=0;i<n_targets;i++){
if (strcmp (name, targets[i]->name) == 0) {
--
GitLab