Skip to content

Commit

Permalink
cefbin: Set source element flag
Browse files Browse the repository at this point in the history
  • Loading branch information
philn committed Dec 8, 2022
1 parent cce144d commit 68ad842
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gstcefbin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ gst_cef_bin_constructed (GObject *object)
GstElement *cefsrc, *cefdemux, *vqueue, *aqueue;
GstPad *srcpad;


gst_bin_set_suppressed_flags (GST_BIN_CAST (self),
static_cast<GstElementFlags>(GST_ELEMENT_FLAG_SOURCE | GST_ELEMENT_FLAG_SINK));
GST_OBJECT_FLAG_SET (self, GST_ELEMENT_FLAG_SOURCE);

cefsrc = gst_element_factory_make("cefsrc", "cefsrc");
cefdemux = gst_element_factory_make("cefdemux", "cefdemux");
vqueue = gst_element_factory_make("queue", "video-queue");
Expand Down

0 comments on commit 68ad842

Please sign in to comment.