Set EXT-X-ENDLIST tag in HLS playlist

joakim joakim.magnusson at spiideo.com
Tue Apr 9 07:22:10 UTC 2019


You were right about pushing an EOS event to the pipeline. I just added one
line to my stop function and then it worked:

int
rtsp_client_stop_stream(rtsp_client_t *rtsp_client) {
    gst_element_send_event(rtsp_client->sink, gst_event_new_eos());
    gst_element_set_state (rtsp_client->pipeline, GST_STATE_NULL);
    FILE *fp = NULL;
    fp = fopen(rtsp_client->playlist_path, "r");
    g_main_loop_unref(rtsp_client->loop);
    pthread_join(*(rtsp_client->pthread), NULL); //free the pointer
    gst_object_unref (GST_OBJECT (rtsp_client->pipeline));
    rtsp_client->pthread = NULL;
    rtsp_client->loop = NULL;
    rtsp_client->pipeline = NULL;
    return 0;
}

Thank you for the answer!



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


More information about the gstreamer-devel mailing list