PR #22716 opened by Scott Theisen (ulmus-scott)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22716
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22716.patch

NetBSD doesn't have this error code, so put in a test to prevent
compiling related code on NetBSD systems.

---

This is from MythTV: 
https://github.com/MythTV/mythtv/commit/b3cce813ebb71abaaa5b79053d083512547ad8c0


>From cfe15ad4ce627fe5efd3725bb639d5ef0e565f03 Mon Sep 17 00:00:00 2001
From: David Hampton <[email protected]>
Date: Thu, 12 Feb 2026 17:33:00 -0500
Subject: [PATCH] avdevice/alsa.c: Conditionally compile out ESTRPIPE

NetBSD doesn't have this error code, so put in a test to prevent
compiling related code on NetBSD systems.
---
 libavdevice/alsa.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c
index cfdb28ff49..9d8239c962 100644
--- a/libavdevice/alsa.c
+++ b/libavdevice/alsa.c
@@ -335,10 +335,12 @@ int ff_alsa_xrun_recover(AVFormatContext *s1, int err)
 
             return AVERROR(EIO);
         }
+#ifdef ESTRPIPE
     } else if (err == -ESTRPIPE) {
         av_log(s1, AV_LOG_ERROR, "-ESTRPIPE... Unsupported!\n");
 
         return -1;
+#endif
     }
     return err;
 }
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to