mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
467c454d75
Original commit message from CVS: * gst/playback/gstdecodebin.c: (gst_decode_bin_get_type), (gst_decode_bin_class_init), (gst_decode_bin_factory_filter), (compare_ranks), (print_feature), (gst_decode_bin_init), (gst_decode_bin_dispose), (find_compatibles), (close_pad_link), (try_to_link_1), (new_pad), (close_link), (type_found), (gst_decode_bin_set_property), (gst_decode_bin_get_property), (gst_decode_bin_change_state), (plugin_init): * gst/playback/gstplaybasebin.c: (gst_play_base_bin_get_type), (gst_play_base_bin_class_init), (gst_play_base_bin_init), (gst_play_base_bin_dispose), (queue_overrun), (gen_preroll_element), (remove_prerolls), (no_more_pads), (new_stream), (setup_source), (gst_play_base_bin_set_property), (gst_play_base_bin_get_property), (play_base_eos), (gst_play_base_bin_change_state), (gst_play_base_bin_add_element), (gst_play_base_bin_remove_element), (gst_play_base_bin_mute_stream), (gst_play_base_bin_link_stream), (gst_play_base_bin_unlink_stream), (gst_play_base_bin_get_streaminfo): * gst/playback/gstplaybasebin.h: * gst/playback/gstplaybin.c: (gst_play_bin_get_type), (gst_play_bin_class_init), (gst_play_bin_init), (gst_play_bin_dispose), (gst_play_bin_set_property), (gst_play_bin_get_property), (gen_video_element), (gen_audio_element), (remove_sinks), (setup_sinks), (gst_play_bin_change_state), (gst_play_bin_get_event_masks), (gst_play_bin_send_event), (gst_play_bin_get_formats), (gst_play_bin_convert), (gst_play_bin_get_query_types), (gst_play_bin_query), (plugin_init): * gst/playback/test4.c: (main): More fixes on reusing of the element. |
||
---|---|---|
.. | ||
decodetest.c | ||
gstdecodebin.c | ||
gstplaybasebin.c | ||
gstplaybasebin.h | ||
gstplaybin.c | ||
gststreaminfo.c | ||
gststreaminfo.h | ||
Makefile.am | ||
README | ||
test.c | ||
test2.c | ||
test3.c | ||
test4.c |
decoderbin: A bin with a sinkpad that decodes the data into raw formats. It works by sending the input data through a typefind element and then recursively autoplugs elements from the registry until a raw format is obtained. It will then create a new ghostpad on itself to signal the app of the new pad. TODO - reuse of decoderbin, cleanup in READY state - debugging - threading after demuxing? - better factory selection, based on Demuxer/Decoder types and ranks. - error handling baseplaybin: A bin with an uri property. It will find the right source element from the registry and connect a decoderbin to it. When going to the PAUSED state, it will iterate the decoderbin and listen for new pad signals from it. It will connect a queue to each new pad and will iterate the decoderbin until one of the queues is filled. It is assumed that by that time all the streams will be found so that when leaving the PAUSED state, one can query the number of streams in the media file with the given uri. Before going to the PLAYING state, it is possible to connect a custom element to each of the streams. To do that, you have to add the element to the bin and then connect the pad(s) from the stream(s). You do not have to add the elements in a thread, the bin will take care of then when it's needed. You are allowed to use threads inside the elements, of course. The bin tries to be smart and doesn't add a queue when there is only one possible stream. TODO - reuse, cleanup in ready state - debugging - when the first pad is closed, it's possible that another dynamic element is added somewhere so that we need a queue for the first pad as well. - error handling playbin: Extends baseplaybin, sets up default audiosink and videosink for first audio/video stream detected. implements seeking and querying on the configured sinks. TODO - reuse, refcounting, cleanup in READY state - debugging - error handling