GstEnginePipeline: Use "source-setup" instead of "notify::source" signal

This works with both playbin 2 and 3.

Possible fix for #1148
This commit is contained in:
Jonas Kvinge
2023-03-19 22:28:12 +01:00
parent 664a8c79a1
commit b16bec704a
2 changed files with 18 additions and 23 deletions

View File

@@ -151,7 +151,7 @@ class GstEnginePipeline : public QObject {
static GstPadProbeReturn PlaybinProbeCallback(GstPad *pad, GstPadProbeInfo *info, gpointer self);
static void ElementAddedCallback(GstBin *bin, GstBin*, GstElement *element, gpointer self);
static void PadAddedCallback(GstElement *element, GstPad *pad, gpointer self);
static void NotifySourceCallback(GstPlayBin *bin, GParamSpec *param_spec, gpointer self);
static void SourceSetupCallback(GstElement *playbin, GstElement *source, gpointer self);
static void NotifyVolumeCallback(GstElement *element, GParamSpec *param_spec, gpointer self);
static void AboutToFinishCallback(GstPlayBin *playbin, gpointer self);
static GstBusSyncReply BusSyncCallback(GstBus *bus, GstMessage *msg, gpointer self);