Skip to content

Commit 0e85a9e

Browse files
committed
gstplayer: only define appsink event handler for gstreamer >= 1.20.0
Uses gstreamer 1.20.0-only API and is only used for 1.20.0 anyway.
1 parent d1ae60a commit 0e85a9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/gstreamer_video_player/flutter_texture_sink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ static GstCaps *caps_for_frame_interface(struct frame_interface *interface) {
157157
return caps;
158158
}
159159

160+
#if THIS_GSTREAMER_VER >= GSTREAMER_VER(1, 20, 0)
160161
static gboolean on_appsink_new_event(GstAppSink *appsink, gpointer userdata) {
161162
(void) userdata;
162163

@@ -183,6 +184,7 @@ static gboolean on_appsink_new_event(GstAppSink *appsink, gpointer userdata) {
183184

184185
return FALSE;
185186
}
187+
#endif
186188

187189
UNUSED static gboolean on_appsink_propose_allocation(GstAppSink *appsink, GstQuery *query, gpointer userdata) {
188190
(void) appsink;

0 commit comments

Comments
 (0)