mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
add error handling
Original commit message from CVS: add error handling
This commit is contained in:
parent
085aa670e6
commit
deee35b81c
2 changed files with 19 additions and 1 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2004-01-31 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst-libs/gst/play/play.c: (gst_play_error_quark),
|
||||
(gst_play_error_create), (gst_play_error_plugin),
|
||||
(gst_play_pipeline_setup), (gst_play_init), (gst_play_new):
|
||||
* gst-libs/gst/play/play.h:
|
||||
add error handling during creation
|
||||
* examples/gstplay/player.c: (main):
|
||||
use new gst_play_new
|
||||
|
||||
|
||||
2004-01-31 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/theora/theoradec.c: (theora_dec_chain):
|
||||
|
|
|
@ -99,6 +99,7 @@ main (int argc, char *argv[])
|
|||
{
|
||||
GstPlay *play;
|
||||
GstElement *data_src, *video_sink, *audio_sink, *vis_element;
|
||||
GError *error;
|
||||
|
||||
/* Initing GStreamer library */
|
||||
gst_init (&argc, &argv);
|
||||
|
@ -111,7 +112,13 @@ main (int argc, char *argv[])
|
|||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
/* Creating the GstPlay object */
|
||||
play = gst_play_new ();
|
||||
play = gst_play_new (&error);
|
||||
if (error)
|
||||
{
|
||||
g_print ("Error: could not create play object:\n%s\n", error->message);
|
||||
g_error_free (error);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Getting default audio and video plugins from GConf */
|
||||
audio_sink = gst_element_factory_make ("osssink", "audio_sink");
|
||||
|
|
Loading…
Reference in a new issue