From 29fb3fd06b6ce216b10f3d4e20d04cb5b9b33611 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Thu, 27 Jun 2024 12:27:07 -0400 Subject: [PATCH] Add docstrings for vpush and vpull --- av/filter/graph.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/av/filter/graph.pyx b/av/filter/graph.pyx index 53689c43..e2d95e4c 100644 --- a/av/filter/graph.pyx +++ b/av/filter/graph.pyx @@ -178,6 +178,7 @@ cdef class Graph: ctx.push(frame) def vpush(self, VideoFrame frame): + """Like `push`, but only for VideoFrames.""" for ctx in self._context_by_type.get("buffer", []): ctx.push(frame) @@ -194,6 +195,7 @@ cdef class Graph: return (vsinks or asinks)[0].pull() def vpull(self): + """Like `pull`, but only for VideoFrames.""" vsinks = self._context_by_type.get("buffersink", []) nsinks = len(vsinks) if nsinks != 1: