pkgsrc/mail/thunderbird60/patches/patch-media_libcubeb_src_cubeb.c
ryoon 399c4c43f4 mail/thunderbird60: import thunderbird60-60.9.0
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version uses the gtk2 toolkit.

This package provides Thunderbird 60 ESR.
2019-09-21 11:23:28 +00:00

35 lines
953 B
C

$NetBSD: patch-media_libcubeb_src_cubeb.c,v 1.1 2019/09/21 11:23:28 ryoon Exp $
--- media/libcubeb/src/cubeb.c.orig 2018-12-04 23:11:52.000000000 +0000
+++ media/libcubeb/src/cubeb.c
@@ -60,6 +60,9 @@ int audiotrack_init(cubeb ** context, ch
#if defined(USE_KAI)
int kai_init(cubeb ** context, char const * context_name);
#endif
+#if defined(USE_OSS)
+int oss_init(cubeb ** context, char const * context_name);
+#endif
static int
validate_stream_params(cubeb_stream_params * input_stream_params,
@@ -160,6 +163,10 @@ cubeb_init(cubeb ** context, char const
#if defined(USE_KAI)
init_oneshot = kai_init;
#endif
+ } else if (!strcmp(backend_name, "oss")) {
+#if defined(USE_OSS)
+ init_oneshot = oss_init;
+#endif
} else {
/* Already set */
}
@@ -204,6 +211,9 @@ cubeb_init(cubeb ** context, char const
#if defined(USE_KAI)
kai_init,
#endif
+#if defined(USE_OSS)
+ oss_init,
+#endif
};
int i;