mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
break up link function for better error debug
Original commit message from CVS: break up link function for better error debug
This commit is contained in:
parent
6c1fe8ceaa
commit
c8599db324
2 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-02-18 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst-libs/gst/play/play.c: (gst_play_pipeline_setup):
|
||||||
|
break up _link so we can give a better debug message for errors
|
||||||
|
|
||||||
2004-02-18 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-02-18 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init):
|
* ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init):
|
||||||
|
|
|
@ -282,10 +282,19 @@ gst_play_pipeline_setup (GstPlay *play, GError **error)
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (video_thread), video_queue, video_switch, video_cs,
|
gst_bin_add_many (GST_BIN (video_thread), video_queue, video_switch, video_cs,
|
||||||
video_balance, balance_cs, video_scaler, video_sink, NULL);
|
video_balance, balance_cs, video_scaler, video_sink, NULL);
|
||||||
if (!gst_element_link_many (video_queue, video_switch, video_cs,
|
/* break down linking so we can figure out what might be failing */
|
||||||
video_balance, balance_cs, video_scaler,
|
if (!gst_element_link (video_queue, video_switch))
|
||||||
video_sink, NULL))
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (queue and switch)");
|
||||||
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread elements");
|
if (!gst_element_link (video_switch, video_cs))
|
||||||
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (switch and cs)");
|
||||||
|
if (!gst_element_link (video_cs, video_balance))
|
||||||
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (cs and balance)");
|
||||||
|
if (!gst_element_link (video_balance, balance_cs))
|
||||||
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (balance and balance_cs)");
|
||||||
|
if (!gst_element_link (balance_cs, video_scaler))
|
||||||
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (balance_cs and scaler)");
|
||||||
|
if (!gst_element_link (video_scaler, video_sink))
|
||||||
|
GST_PLAY_ERROR_RETURN (error, "Could not link video output thread (balance_cs and scaler)");
|
||||||
gst_element_add_ghost_pad (video_thread,
|
gst_element_add_ghost_pad (video_thread,
|
||||||
gst_element_get_pad (video_queue, "sink"),
|
gst_element_get_pad (video_queue, "sink"),
|
||||||
"sink");
|
"sink");
|
||||||
|
|
Loading…
Reference in a new issue