summaryrefslogtreecommitdiff
path: root/tools/gst-launch.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-04gst-launch: Fix process return value on errorNicolas Dufresne1-0/+1
In case of a run-time error message, the process return value was left unset. This would lead to error not being caught at shell level. https://bugzilla.gnome.org/show_bug.cgi?id=759019
2015-12-04Revert "tools: gst-launch: return non-0 exit code on async error"Nicolas Dufresne1-2/+0
This reverts commit 2ee4cba2485d7f1646d48e4559426aed4ba99c85.
2015-12-04tools: gst-launch: return non-0 exit code on async errorTim-Philipp Müller1-0/+2
When an error happens in playing state, still return a non-0 exit code. https://bugzilla.gnome.org/show_bug.cgi?id=759019
2015-10-05tests/gst-launch: Fix sample memory leakVineeth TM1-0/+1
When sample is got using gst_tag_list_get_sample_index, it should be free'd. https://bugzilla.gnome.org/show_bug.cgi?id=756069
2015-10-02gstreamer: Fix memory leaks when context parse failsVineeth TM1-5/+7
When g_option_context_parse fails, context and error variables are not getting free'd which results in memory leaks. Free'ing the same. And replacing g_error_free with g_clear_error, which checks if the error being passed is not NULL and sets the variable to NULL on free'ing. https://bugzilla.gnome.org/show_bug.cgi?id=753851
2015-09-05tools: gst-launch: fix --exclude command line optionTim-Philipp Müller1-6/+6
This has not worked (as in: crashed) since 2005, so perhaps it should just be removed instead.
2014-12-01Don't compare booleans for equality to TRUE and FALSESebastian Dröge1-2/+2
TRUE is 1, but every other non-zero value is also considered true. Comparing for equality with TRUE would only consider 1 but not the others. Also normalize booleans in a few places.
2014-07-28gst-launch: Support SIGINT (Ctrl+C) on W32Руслан Ижбулатов1-2/+24
W32 has no SIGINT, but it does have SetConsoleCtrlHandler(), which sets up a handler for Ctrl+C. https://bugzilla.gnome.org/show_bug.cgi?id=733814
2014-03-25launch: place the deep-notify on the right pipelineWim Taymans1-7/+6
If the toplevel bin is not not a pipeline, we place the bin in a pipeline. Also make sure that we connect to the deep-notify of this new pipeline because we will g_signal_handler_disconnect() from it later.
2014-01-30tools: Support non-ASCII tagsSebastian Dröge1-0/+2
By calling setlocale() to get us multi-byte/UTF-8 support. https://bugzilla.gnome.org/show_bug.cgi?id=723164
2013-12-10gst-launch: Handle taglist copy failureEdward Hervey1-1/+2
If we couldn't copy the tags, just return instead of trying to use bogus values.
2013-12-05tools: gst-launch: don't try to remove already-removed GSource from main loopTim-Philipp Müller1-4/+7
It's considered a programming error in recent GLib versions now. We may already have removed the source by returning FALSE from the callback if it was fired. Fixes warning with newer GLibs when interrupting a pipeline with Control-C.
2013-11-25gst-launch: exit with an error code when an error occuredPhilippe Normand1-0/+4
If the pipeline failed to pre-roll or the user interrupted the execution then set the exit code to a positive value. https://bugzilla.gnome.org/show_bug.cgi?id=712300
2013-11-01gst-launch: fix potential uninitialized variable warningMatthieu Bouron1-8/+10
https://bugzilla.gnome.org/show_bug.cgi?id=710758
2013-09-18gst-launch: Update for GstContext changesSebastian Dröge1-73/+9
2013-08-26tools: gst-launch: don't print properties being reset when shutting downTim-Philipp Müller1-1/+6
It's just noise.
2013-06-11gst-launch: Remove unref that should not be thereSebastian Dröge1-1/+0
We keep a reference to the context around all the time. https://bugzilla.gnome.org/show_bug.cgi?id=701985
2013-06-09gst-launch: Improve GstContext handlingSebastian Dröge1-21/+61
https://bugzilla.gnome.org/show_bug.cgi?id=700967
2013-04-18tools: update for latest context API changesTim-Philipp Müller1-2/+3
2013-04-17gst-launch: Add GstContext supportSebastian Dröge1-0/+42
gst-launch will collect all the contexts from the pipeline elements and update the overall pipeline context with it.
2013-04-11launch: handle PROGRESS messagesWim Taymans1-8/+44
Wait for all PROGRESS messages (if any) to complete before going to the PLAYING state. This is the only way we can wait for live elements to complete their operations. This is interesting for elements like rtspsrc that do some asynchronous network requests as part of going to the PAUSED state. It could be possible that it, for example, provides a clock and then we would like to wait until it completes so that we can use the provided clock when going to PLAYING.
2013-04-06gst-launch: Fix space in fault messageDavid Schleef1-1/+1
2013-03-11launch: don't exit the loop on buffering in pausedWim Taymans1-10/+11
When we receive a buffering message of 100% in the paused state, we exit the event_loop and move to the PLAYING state. What should happen is that we wait for both ASYNC-DONE and 100% buffering before continueing.
2013-02-14gst-launch: Use g_unix_signal_add() to handle keyboard interruptionKrzysztof Konopko1-117/+28
Current implementation uses a traditional signal handler and a 250ms timeout callback in the event loop. Adding a GSource with g_unix_signal_add() to the GMainLoop is a much more elegant solution. The signal handler with this approach can send a message to the bus directly rather than set a flag as all dispatching intricacies are handled by GLib. https://bugzilla.gnome.org/show_bug.cgi?id=693481
2012-12-10gst-launch: report execution time in GST_TIME_FORMATAndrzej Bieniek1-1/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687523
2012-11-03Fix FSF addressTim-Philipp Müller1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-09-25Make intel compiler happierJosep Torra Valles1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=552657
2012-08-02tools: fix printing of partial dates in gst-launchTim-Philipp Müller1-3/+2
2012-08-02Revert "tools: print TOC scope"Tim-Philipp Müller1-6/+0
This reverts commit ee6ab7c93638a6519acb976699a6ad149d520a95. The application will probably only ever receive global TOCs, so don't really need this.
2012-07-28tools: print TOC scopeTim-Philipp Müller1-0/+6
2012-07-26gst-launch: print image tags and other GstSample tags properlyTim-Philipp Müller1-11/+20
These tags are now of type GstSample not GstBuffer.
2012-07-05toc: Make structures opaque and clean up function names and fields a bitSebastian Dröge1-11/+15
2012-06-26tools: minor clean-upTim-Philipp Müller1-1/+1
Get rid of superfluous argument.
2012-06-26tools: remove useless g_set_prgname() wrapperTim-Philipp Müller1-1/+1
2012-06-26tools: point people to right binary when a crash happensTim-Philipp Müller1-3/+4
"gst-launch" is the 0.10 wrapper script, using that with gdb is not going to yield great results.
2012-06-24tocsetter, gst-launch, tests: update for GstToc API changesTim-Philipp Müller1-1/+1
2012-06-23tools: remove pointless get_state() in gst-launchTim-Philipp Müller1-1/+0
State changes to NULL state are always sync.
2012-06-20bus: add GDestroyNotify to set_sync_handler()Wim Taymans1-1/+1
2012-05-28gst_tag_list_free() -> gst_tag_list_unref()Tim-Philipp Müller1-1/+1
2012-05-21gst-launch: fix -c, --toc messageAnton Belka1-1/+1
2012-05-18launch: improve EOS on shutdown handlingWim Taymans1-9/+28
When the -e option is selected, also wait for EOS when the pipeline produced an error. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=630997
2012-05-15gst: Rename gst_toc_entry_type_to_string() to gst_toc_entry_type_get_nick()Sebastian Dröge1-1/+1
It's more consistent.
2012-05-15gst-launch: fix print_toc_entry()Anton Belka1-3/+3
2012-05-09gst-launch: print tags in tocAnton Belka1-1/+24
2012-04-02tools: fix compiler warningTim-Philipp Müller1-4/+5
gst-launch.c: In function ‘print_toc_entry’: gst-launch.c:446:3: error: the size of array ‘spc’ can’t be evaluated [-Werror=vla] gst-launch.c:446:3: error: variable-sized object may not be initialized
2012-04-02Merge branch '0.10'Stefan Sauer1-0/+54
Conflicts: docs/gst/gstreamer-sections.txt gst/Makefile.am gst/gst.c gst/gst.h gst/gstevent.c gst/gstevent.h gst/gstmessage.h gst/gstquark.c gst/gstquark.h gst/gstquery.c gst/gstquery.h tests/check/Makefile.am
2012-04-02gst-launch: add -c, --toc to print the tocStefan Sauer1-0/+54
Print the nested chapter and edition structure of the chapters message.
2012-03-29Merge remote-tracking branch 'origin/0.10'Sebastian Dröge1-4/+4
Conflicts: plugins/elements/gstmultiqueue.c
2012-03-22gst-launch: don't shadow global variableStefan Sauer1-4/+4
2012-01-27trace: rework alloc tracingWim Taymans1-14/+0
Remove trace, we use debug log for that Make alloc trace simpler, removing some methods. Activate alloc trace with a GST_TRACE=3 environment variable. Dump leaked objects atexit. Provide an offset in the object where the GType can be found so that more verbose info can be given for objects. Remove -T option from gst-launch because tracing is now triggered with the environment variable.