summaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2005-03-04More work on subclassing the sinks from the basesink.BRANCH-THREADEDWim Taymans1-1/+1
Original commit message from CVS: More work on subclassing the sinks from the basesink. First attempt at generic audiosink base objects. Make oss DMA audiosink.
2005-02-20examples/seeking/seek.c: Add realtime scrubbing to the seek example.Jan Schmidt1-4/+47
Original commit message from CVS: * examples/seeking/seek.c: (end_scrub), (do_seek), (seek_cb), (start_seek), (stop_seek): Add realtime scrubbing to the seek example. * ext/ogg/gstoggdemux.c: (gst_ogg_demux_perform_seek): Avoid overflowing 64-bits on large files when estimating the new position during a seek.
2005-02-05examples/seeking/seek.c: Add AVI pipeline.Ronald S. Bultje1-1/+67
Original commit message from CVS: * examples/seeking/seek.c: (make_avi_msmpeg4v3_mp3_pipeline): Add AVI pipeline. * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps), (gst_riff_create_audio_caps), (gst_riff_create_iavs_caps), (gst_riff_create_video_template_caps), (gst_riff_create_audio_template_caps), (gst_riff_create_iavs_template_caps): * gst-libs/gst/riff/riff-media.h: Remove obsolete non-data functions, make data functions the default. * gst-libs/gst/riff/riff-read.c: (gst_riff_read_chunk), (gst_riff_parse_chunk), (gst_riff_parse_file_header), (gst_riff_parse_strh), (gst_riff_parse_strf_vids), (gst_riff_parse_strf_auds), (gst_riff_parse_strf_iavs), (gst_riff_parse_info): * gst-libs/gst/riff/riff-read.h: * gst-libs/gst/riff/riff.c: (plugin_init): Change from bytestream-wrapping to pure RIFF parsing (can be used chain-based if someone would want that). Add gtk-doc comments. * gst/avi/Makefile.am: * gst/avi/gstavi.c: (plugin_init): Disable mux for now. * gst/avi/gstavidemux.c: (gst_avi_demux_get_type), (gst_avi_demux_class_init), (gst_avi_demux_init), (gst_avi_demux_reset), (gst_avi_demux_src_convert), (gst_avi_demux_handle_src_query), (gst_avi_demux_handle_src_event), (gst_avi_demux_parse_file_header), (gst_avi_demux_stream_init), (gst_avi_demux_parse_avih), (gst_avi_demux_parse_superindex), (gst_avi_demux_parse_subindex), (gst_avi_demux_read_subindexes), (gst_avi_demux_parse_stream), (gst_avi_demux_parse_odml), (gst_avi_demux_parse_index), (gst_avi_demux_stream_index), (gst_avi_demux_stream_scan), (gst_avi_demux_massage_index), (gst_avi_demux_stream_header), (gst_avi_demux_handle_seek), (gst_avi_demux_process_next_entry), (gst_avi_demux_stream_data), (gst_avi_demux_loop), (gst_avi_demux_sink_activate): * gst/avi/gstavidemux.h: Port to changed RIFF API, port to 0.9, add locking. Add gtk-doc comments to some relevant functions. Seeking is weird, works otherwise. Some parts are still disabled.
2005-01-11Clock fixes.Wim Taymans1-1/+72
Original commit message from CVS: Clock fixes. Added seeking in theora/vorbis ogg files. Make playbin compile.
2005-01-07Handle EOS in oggdemux. Activate chains on BOS pages.Wim Taymans1-2/+0
Original commit message from CVS: * examples/seeking/seek.c: (dynamic_link), (make_vorbis_pipeline), (make_theora_pipeline), (do_seek), (start_seek), (stop_seek): * ext/ogg/gstoggdemux.c: (gst_ogg_pad_get_type), (gst_ogg_pad_class_init), (gst_ogg_pad_init), (gst_ogg_pad_dispose), (gst_ogg_pad_finalize), (gst_ogg_pad_getcaps), (gst_ogg_pad_src_query), (gst_ogg_pad_event), (gst_ogg_demux_factory_filter), (compare_ranks), (gst_ogg_pad_internal_chain), (gst_ogg_pad_typefind), (gst_ogg_pad_submit_packet), (gst_ogg_pad_submit_page), (gst_ogg_chain_new), (gst_ogg_chain_free), (gst_ogg_chain_new_stream), (gst_ogg_chain_get_stream), (gst_ogg_chain_has_stream), (gst_ogg_demux_base_init), (gst_ogg_demux_init), (gst_ogg_demux_finalize), (gst_ogg_demux_submit_buffer), (gst_ogg_demux_seek), (gst_ogg_demux_get_data), (gst_ogg_demux_get_next_page), (gst_ogg_demux_get_prev_page), (gst_ogg_demux_deactivate_current_chain), (gst_ogg_demux_activate_chain), (gst_ogg_demux_perform_seek), (gst_ogg_demux_bisect_forward_serialno), (gst_ogg_demux_read_chain), (gst_ogg_demux_read_end_chain), (gst_ogg_demux_find_pad), (gst_ogg_demux_find_chain), (gst_ogg_demux_find_chains), (gst_ogg_demux_chain_unlocked), (gst_ogg_demux_chain), (gst_ogg_demux_send_eos), (gst_ogg_demux_loop), (gst_ogg_demux_sink_activate), (gst_ogg_print): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_sink_link), (gst_xvimagesink_change_state), (gst_xvimagesink_event), (gst_xvimagesink_show_frame), (gst_xvimagesink_finish_preroll), (gst_xvimagesink_chain), (gst_xvimagesink_buffer_alloc), (gst_xvimagesink_init): * sys/xvimage/xvimagesink.h: Handle EOS in oggdemux. Activate chains on BOS pages. Do not wait for preroll when xvimagesink is in EOS.
2005-01-06Ogg fixes. xvimagesink clock unscheduling for faster state changes.Wim Taymans1-2/+7
Original commit message from CVS: Ogg fixes. xvimagesink clock unscheduling for faster state changes. Small updates for plugins that use GstTask.
2005-01-04Implement flushing.Wim Taymans1-10/+24
Original commit message from CVS: * examples/seeking/seek.c: (dynamic_link), (make_vorbis_pipeline), (make_theora_pipeline), (do_seek), (start_seek), (stop_seek): * ext/ogg/gstoggdemux.c: (gst_ogg_pad_get_type), (gst_ogg_pad_init), (gst_ogg_pad_src_query), (gst_ogg_pad_event), (gst_ogg_demux_factory_filter), (compare_ranks), (gst_ogg_pad_internal_chain), (gst_ogg_pad_typefind), (gst_ogg_pad_submit_packet), (gst_ogg_pad_submit_page), (gst_ogg_chain_new), (gst_ogg_chain_free), (gst_ogg_chain_new_stream), (gst_ogg_chain_get_stream), (gst_ogg_chain_has_stream), (gst_ogg_demux_base_init), (gst_ogg_demux_init), (gst_ogg_demux_submit_buffer), (gst_ogg_demux_seek), (gst_ogg_demux_get_data), (gst_ogg_demux_get_next_page), (gst_ogg_demux_get_prev_page), (gst_ogg_demux_perform_seek), (gst_ogg_demux_bisect_forward_serialno), (gst_ogg_demux_read_chain), (gst_ogg_demux_read_end_chain), (gst_ogg_demux_find_pad), (gst_ogg_demux_find_chains), (gst_ogg_demux_chain_unlocked), (gst_ogg_demux_chain), (gst_ogg_demux_loop), (gst_ogg_demux_sink_activate), (gst_ogg_print): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_sink_link), (gst_xvimagesink_event), (gst_xvimagesink_show_frame), (gst_xvimagesink_finish_preroll), (gst_xvimagesink_chain), (gst_xvimagesink_buffer_alloc): * sys/xvimage/xvimagesink.h: Implement flushing. Improved seeking in ogg.
2004-12-31First attempt at seeking in ogg vorbis.Wim Taymans1-2/+2
Original commit message from CVS: First attempt at seeking in ogg vorbis. Fix some plugins with new DISCONT values.
2004-12-31Ogg demuxer updates, uses decoder plugin internally to convert granulepos to ↵Wim Taymans1-1/+41
timestamps. Original commit message from CVS: Ogg demuxer updates, uses decoder plugin internally to convert granulepos to timestamps. Various other plugin updates.
2004-12-29Various plugin updates.Wim Taymans1-72/+52
Original commit message from CVS: Various plugin updates.
2004-12-20Various plugin updates to have something to play with.Wim Taymans3-0/+251
Original commit message from CVS: Various plugin updates to have something to play with.
2004-10-26examples/: David Schleef4-7/+7
Original commit message from CVS: * examples/gstplay/player.c: (got_stream_length), (main): * examples/seeking/cdplayer.c: (update_scale): * examples/seeking/seek.c: (format_value), (update_scale): * examples/seeking/spider_seek.c: (format_value), (update_scale), (stop_seek):
2004-10-25examples/seeking/: Added some more examples, update others.Wim Taymans4-3/+376
Original commit message from CVS: * examples/seeking/Makefile.am: * examples/seeking/cdplayer.c: (update_scale): * examples/seeking/chained.c: (unlinked), (new_pad), (main): * examples/seeking/playbin.c: (make_playerbin_pipeline), (format_value), (update_scale), (iterate), (start_seek), (stop_seek), (print_media_info), (play_cb), (pause_cb), (stop_cb), (print_usage), (main): Added some more examples, update others.
2004-09-12Fixes: #151879, #151881, #151882, #151883, #151884, #151886, #151887, ↵David Schleef7-41/+50
#152102, #152247. Original commit message from CVS: Fixes: #151879, #151881, #151882, #151883, #151884, #151886, #151887, #152102, #152247. * examples/indexing/indexmpeg.c: 64-bit warning fixes. * examples/seeking/cdparanoia.c: same * examples/seeking/cdplayer.c: same * examples/seeking/seek.c: same * examples/seeking/spider_seek.c: same * examples/seeking/vorbisfile.c: same * examples/stats/mp2ogg.c: same * ext/esd/esdsink.c: (gst_esdsink_class_init), (gst_esdsink_dispose): Dispose of element properly. * ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_seek): 64-bit warning fixes. * ext/nas/nassink.c: (gst_nassink_class_init), (gst_nassink_dispose): Dispose of element correctly. * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): Fix leak. * sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls), (gst_ximagesink_ximage_new), (gst_ximagesink_ximage_destroy): Fix 64-bit warning. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new), (gst_xvimagesink_xvimage_destroy): Fix 64-bit warning.
2004-08-03fixes for G_DISABLE_ASSERT and friendsBenjamin Otte2-3/+5
Original commit message from CVS: * examples/dynparams/filter.c: (ui_control_create): * examples/gstplay/player.c: (print_tag): * ext/alsa/gstalsa.c: (gst_alsa_request_new_pad): * ext/gdk_pixbuf/gstgdkanimation.c: (gst_gdk_animation_iter_may_advance): * ext/jack/gstjack.c: (gst_jack_request_new_pad): * ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list), (tag_list_to_id3_tag_foreach), (gst_id3_tag_handle_event): * ext/vorbis/oggvorbisenc.c: (gst_oggvorbisenc_get_tag_value): * ext/vorbis/vorbisenc.c: (gst_vorbisenc_get_tag_value): * ext/xine/xineaudiodec.c: (gst_xine_audio_dec_chain): * gst-libs/gst/media-info/media-info-test.c: (print_tag): * gst/sine/demo-dparams.c: (main): * gst/tags/gstvorbistag.c: (gst_tag_to_vorbis_comments): * testsuite/alsa/formats.c: (create_pipeline): * testsuite/alsa/sinesrc.c: (sinesrc_force_caps), (sinesrc_get): fixes for G_DISABLE_ASSERT and friends * gst/typefind/gsttypefindfunctions.c: (aac_type_find), (mp3_type_frame_length_from_header), (mp3_type_find), (plugin_init): require mp3 typefinding to have at least MIN_HEADERS valid headers add typefinding for AAC adts files
2004-07-22More playback updates, attempt to fix things after the state change breakage.Wim Taymans1-4/+13
Original commit message from CVS: * examples/seeking/seek.c: (update_scale), (main): * gst/playback/gstdecodebin.c: (gst_decode_bin_get_type), (gst_decode_bin_class_init), (gst_decode_bin_is_dynamic), (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), (no_more_pads), (close_link), (type_found), (gst_decode_bin_set_property), (gst_decode_bin_get_property), (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), (unknown_type), (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/gstplaybin.c: (gen_video_element), (gen_audio_element): * gst/playback/gststreaminfo.h: More playback updates, attempt to fix things after the state change breakage.
2004-07-16Make sure the widget gets updated even if the slider value doesn't change.Wim Taymans1-2/+5
Original commit message from CVS: Make sure the widget gets updated even if the slider value doesn't change.
2004-07-12Make Johan happy.Wim Taymans1-0/+1
Original commit message from CVS: Make Johan happy.
2004-07-09examples/seeking/seek.c: Don't consume all CPU in the idle loop.Wim Taymans1-0/+1
Original commit message from CVS: * examples/seeking/seek.c: (iterate): Don't consume all CPU in the idle loop.
2004-07-08examples/seeking/seek.c: Added playbin seeking example.Wim Taymans1-44/+146
Original commit message from CVS: * examples/seeking/seek.c: (make_dv_pipeline), (make_avi_pipeline), (make_mpeg_pipeline), (make_mpegnt_pipeline), (make_playerbin_pipeline), (query_durations_elems), (query_durations_pads), (query_positions_elems), (query_positions_pads), (update_scale), (iterate), (stop_seek), (main): Added playbin seeking example.
2004-05-19configure.ac: Add sunaudioDavid Schleef1-1/+7
Original commit message from CVS: * configure.ac: Add sunaudio * examples/Makefile.am: make gstplay depend on gconf * gst/ffmpegcolorspace/gstffmpegcodecmap.c: Remove c99-isms * gst/ffmpegcolorspace/imgconvert.c: (build_rgb_palette), (convert_table_lookup), (img_convert): remove c99-isms * gst/ffmpegcolorspace/imgconvert_template.h: make a constant unsigned, to fix a warning on Solaris * gst/mpeg1sys/systems.c: bcopy->memcpy * gst/rtjpeg/RTjpeg.c: (RTjpeg_yuvrgb8): bcopy->memcpy * sys/Makefile.am: Add sunaudio
2004-04-13make player example use gconfThomas Vander Stichele2-4/+12
Original commit message from CVS: make player example use gconf
2004-03-29return proper values for state change failuresThomas Vander Stichele1-6/+13
Original commit message from CVS: return proper values for state change failures
2004-03-15don't mix tabs and spacesThomas Vander Stichele10-143/+149
Original commit message from CVS: don't mix tabs and spaces
2004-03-14gst-indentThomas Vander Stichele11-638/+615
Original commit message from CVS: gst-indent
2004-03-05examples/gstplay/player.c: Initialize variables to NULL. Prevents a segfault ↵Ronald S. Bultje1-1/+1
because the (uninitialized) variable is ... Original commit message from CVS: * examples/gstplay/player.c: (main): Initialize variables to NULL. Prevents a segfault because the (uninitialized) variable is not NULL, resulting in a crash on trying to reach error->message.
2004-03-01add error handler fix mixmatrix plugin filenameThomas Vander Stichele1-1/+3
Original commit message from CVS: add error handler fix mixmatrix plugin filename
2004-02-16Spelling fixJohan Dahlin1-1/+1
Original commit message from CVS: Spelling fix
2004-02-15examples/gstplay/player.c: Adding some output for debugging.Julien Moutte1-2/+5
Original commit message from CVS: 2004-02-15 Julien MOUTTE <julien@moutte.net> * examples/gstplay/player.c: (got_eos), (main): Adding some output for debugging. * gst-libs/gst/play/play.c: (gst_play_state_change): Stop our timeouts if we go to any state different from PLAYING. * gst-libs/gst/riff/riff-read.c: (gst_riff_read_seek): Fix some more EOS bugs in riff lib.
2004-02-03examples/switch/.cvsignore: Ignore generated file.David I. Lehn1-0/+1
Original commit message from CVS: * examples/switch/.cvsignore: Ignore generated file.
2004-01-31add error handlingThomas Vander Stichele1-1/+8
Original commit message from CVS: add error handling
2004-01-31examples/gstplay/player.c: s/gstplay.h/play.h/David I. Lehn1-1/+1
Original commit message from CVS: * examples/gstplay/player.c: s/gstplay.h/play.h/
2004-01-25add cvsignore fileBenjamin Otte1-0/+1
Original commit message from CVS: add cvsignore file
2004-01-18use new error signal and classificationThomas Vander Stichele1-1/+1
Original commit message from CVS: use new error signal and classification
2004-01-11configure.ac: Adding examples/switch/MakefileJulien Moutte3-2/+116
Original commit message from CVS: 2004-01-11 Julien MOUTTE <julien@moutte.net> * configure.ac: Adding examples/switch/Makefile * examples/Makefile.am: Adding examples/switch * examples/switch/Makefile.am: Adding switcher example. * examples/switch/switcher.c: (got_eos), (idle_iterate), (switch_timer), (main): Adding an example demonstrating switch usage with 2 videotestsrc showing different patterns. * gst/switch/gstswitch.c: (gst_switch_request_new_pad), (gst_switch_init): Fixing switch with the new caps system.
2004-01-07examples/gstplay/Makefile.am: Adding the interface library.Julien Moutte1-1/+2
Original commit message from CVS: * examples/gstplay/Makefile.am: Adding the interface library. * gst-libs/gst/play/Makefile.am: Adding the interface library. * gst-libs/gst/play/gstplay.c: (gst_play_set_video_sink): Connecting tothe XOverlay size signal instead of GstVideoSink. * gst-libs/gst/play/gstplay.h: Including the XOverlay interface to check GST_IS_X_OVERLAY before signal connect. * gst-libs/gst/video/gstvideosink.c: (gst_videosink_class_init): Removing the have_video_size signal. * gst-libs/gst/video/gstvideosink.h: Removing the have_video_size signal and associated public method. * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents), (gst_ximagesink_sinkconnect): Using XOverlay public method to fire size signal. * sys/xvideo/xvideosink.c: (gst_xvideosink_sinkconnect), (gst_xvideosink_xwindow_new): Using XOverlay public method to fire size signal. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_sinkconnect): Using XOverlay public method to fire size signal.
2004-01-07examples/gstplay/player.c: Adding some new lines in g_print calls.Julien Moutte1-3/+3
Original commit message from CVS: * examples/gstplay/player.c: (got_time_tick), (got_stream_length), (got_video_size): Adding some new lines in g_print calls. * sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_new), (gst_ximagesink_xwindow_destroy), (gst_ximagesink_xwindow_resize), (gst_ximagesink_handle_xevents), (gst_ximagesink_fixate), (gst_ximagesink_sinkconnect), (gst_ximagesink_change_state), (gst_ximagesink_chain), (gst_ximagesink_buffer_new), (gst_ximagesink_set_xwindow_id), (gst_ximagesink_get_desired_size): Complete code review, reverting some stuff i disagree with, adding some fixes : time synchronization on invalid timestamps, renegotiation of private window. * sys/ximage/ximagesink.h: * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_destroy), (gst_xvimagesink_xwindow_resize), (gst_xvimagesink_handle_xevents), (gst_xvimagesink_get_xv_support), (gst_xvimagesink_xcontext_get), (gst_xvimagesink_fixate), (gst_xvimagesink_sinkconnect), (gst_xvimagesink_change_state), (gst_xvimagesink_chain), (gst_xvimagesink_buffer_new), (gst_xvimagesink_navigation_send_event), (gst_xvimagesink_set_xwindow_id), (gst_xvimagesink_get_desired_size), (gst_xvimagesink_xoverlay_init): Complete code review, reverting some stuff i disagree with, adding some fixes : Renegotiation of private window, implementing get_desired_size.
2003-12-22Merge CAPS branchDavid Schleef1-62/+11
Original commit message from CVS: Merge CAPS branch
2003-12-21examples/gstplay/player.c: using g_print instead of g_message.Julien Moutte1-3/+4
Original commit message from CVS: * examples/gstplay/player.c: (got_time_tick), (got_stream_length), (got_video_size), (main): using g_print instead of g_message. * gst-libs/gst/play/gstplay.c: (gst_play_pipeline_setup): Fixing EOS signal which was not emitted because of "switch" element added to the bin but not connected. (Removing from the bin temporarily)
2003-12-21configure.ac: X_DISPLAY_MISSING is set to 1 if AC_PATH_XTRA fails to find X ↵Julien Moutte1-0/+2
development files. I don't understand the... Original commit message from CVS: * configure.ac: X_DISPLAY_MISSING is set to 1 if AC_PATH_XTRA fails to find X development files. I don't understand the previous tests and they fail on my debian/ppc unstable. This one works. * examples/gstplay/player.c: (main): Set the pipeline to READY before exiting. * gst-libs/gst/play/gstplay.c: (gst_play_get_length_callback), (gst_play_set_video_sink), (gst_play_set_audio_sink), (gst_play_set_visualization): Add some safety checks in set_ methods and state_change. This was throwing some ugly CRITICAL messages when pipeline was getting disposed and casts were failing.
2003-12-19superfluous space segregationMOVE-TO-FDOThomas Vander Stichele1-6/+6
Original commit message from CVS: superfluous space segregation
2003-12-16Adding tag dumping support.Julien Moutte1-1/+36
Original commit message from CVS: Adding tag dumping support.
2003-12-14build fixThomas Vander Stichele1-2/+1
Original commit message from CVS: build fix
2003-12-14Fixing makefile. Smarter seekJulien Moutte2-1/+6
Original commit message from CVS: Fixing makefile. Smarter seek
2003-12-14Adding a test app for libgstplay. It is a command line player.Julien Moutte3-2/+128
Original commit message from CVS: Adding a test app for libgstplay. It is a command line player.
2003-12-02change _connect to _linkDavid Schleef1-5/+5
Original commit message from CVS: change _connect to _link
2003-11-02Add static version of removed gsT_element_factory_make_or_warn()Ronald S. Bultje1-0/+13
Original commit message from CVS: Add static version of removed gsT_element_factory_make_or_warn()
2003-08-10Remove redundant plugindir definitionDavid Schleef1-2/+0
Original commit message from CVS: Remove redundant plugindir definition
2003-07-29fix installing into wrong dirDavid Schleef1-1/+1
Original commit message from CVS: fix installing into wrong dir
2003-07-26fix initializationDavid Schleef2-2/+2
Original commit message from CVS: fix initialization