28 lines
798 B
Diff
28 lines
798 B
Diff
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
|
|
|