Gstreamer Editing Service Set Window Handle

killerrats koreysjunkmail at gmail.com
Wed Apr 15 23:26:53 UTC 2020


if i set the videoSink element to use as the overlay it won't have a cast
pointer like it did if i use the gespipeline object. but will have a
internal error.

setup:
gespipeline = ges_pipeline_new();

        this->mediacat_set_output(GES_PIPELINE_MODE_PREVIEW);
        // Setup audio & video sinks
        GstElement *audioSink = gst_element_factory_make("directsoundsink",
"audio-sink");
        ges_pipeline_preview_set_audio_sink(this->gespipeline, audioSink);

        GstElement *videoSink = gst_element_factory_make("d3dvideosink",
"video-sink");
        ges_pipeline_preview_set_video_sink(this->gespipeline, videoSink);

        GstVideoOverlay* vOverlay = GST_VIDEO_OVERLAY(videoSink);
        if (this->_windows_handle > 0)
                gst_video_overlay_set_window_handle(vOverlay,
this->_windows_handle);
        gst_object_unref(vOverlay);

        timeline = ges_timeline_new();
        a = GES_TRACK(ges_audio_track_new())
                , v = GES_TRACK(ges_video_track_new());
        ges_pipeline_set_timeline(gespipeline, timeline);
        ges_timeline_add_track(timeline, v);
        ges_timeline_add_track(timeline, a);
... Add tracks();
        ges_timeline_commit(timeline);

pipeline = GST_ELEMENT(gespipeline);

error:

(CombineVideoFiles.exe:62920): GStreamer-CRITICAL **: gst_element_set_state:
assertion 'GST_IS_ELEMENT (element)' failed

(CombineVideoFiles.exe:62920): GStreamer-CRITICAL **: gst_element_set_state:
assertion 'GST_IS_ELEMENT (element)' failed
0:00:07.848664000 62920   05DC4400 WARN                playsink
gstplaysink.c:1997:gen_video_chain:<internal-sinks> error: Configured
videosink (null) is not working.

----------------------internal-sinks error 4: Configured videosink (null) is
not working.-------------------------------
0:00:07.849923900 62920   05E7BB70 WARN                 qtdemux
qtdemux.c:6073:gst_qtdemux_loop:<qtdemux2> error: Internal data stream
error.



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list