Skip to content

Commit

Permalink
trying to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chfritz committed Mar 15, 2024
1 parent 0a4a4ab commit 4ed6940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ if [[ $(uname -s) == 'Linux' ]]; then
gstreamer1.0-plugins-base \
gir1.2-gst-plugins-base-1.0 \
gstreamer1.0-plugins-bad \
libgstreamer-plugins-bad1.0-dev \
gir1.2-gst-plugins-bad-1.0
fi;
10 changes: 7 additions & 3 deletions tests/callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ common.describe('callback run from another thread spawned from GTask', async ()
common.describe('callback run from another thread spawned from GstPipeline', async () => {
return await new Promise((resolve, reject) => {
const pipeline = new Gst.Pipeline()
const webrtcbin = Gst.ElementFactory.make('webrtcbin')
// const webrtcbin = Gst.ElementFactory.make('webrtcbin')
const pipelineSegment = Gst.parseBinFromDescription(['webrtcbin name=webrtc'], false)
pipelineSegment.setState(Gst.State.PAUSED)
const webrtcbin = pipelineSegment.getByName(`webrtc`);

if (!pipeline || !webrtcbin) {
reject('Could not create all elements.')
}
pipeline.add(webrtcbin)
// pipeline.add(webrtcbin)
pipeline.add(pipelineSegment)

pipeline.setState(Gst.State.PLAYING)

const timeout = setTimeout(() => {
reject()
}, 1000)
}, 500)
const s = Gst.Structure.newEmpty('structure')
const p = Gst.Promise.newWithChangeFunc(() => {
resolve()
Expand Down

0 comments on commit 4ed6940

Please sign in to comment.