Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. diff --git a/libs/gst/check/gstharness.c b/libs/gst/check/gstharness.c
  2. index 7a6d2aafd..9c69dfd57 100644
  3. --- a/libs/gst/check/gstharness.c
  4. +++ b/libs/gst/check/gstharness.c
  5. @@ -912,16 +912,18 @@ gst_harness_add_parse (GstHarness * h, const gchar * launchline)
  6. GstPad *pad;
  7. GstIterator *iter;
  8. gboolean done = FALSE;
  9. + GError *error = NULL;
  10.  
  11. g_return_if_fail (launchline != NULL);
  12.  
  13. desc = g_strdup_printf ("bin.( %s )", launchline);
  14. bin =
  15. - (GstBin *) gst_parse_launch_full (desc, NULL, GST_PARSE_FLAG_NONE, NULL);
  16. - g_free (desc);
  17. + (GstBin *) gst_parse_launch_full (desc, NULL, GST_PARSE_FLAG_FATAL_ERRORS, &error);
  18.  
  19. - if (G_UNLIKELY (bin == NULL))
  20. - return;
  21. + if (G_UNLIKELY (bin == NULL)) {
  22. + g_error("Unable to create pipeline '%s': %s", desc, error->message);
  23. + }
  24. + g_free (desc);
  25.  
  26. /* find pads and ghost them if necessary */
  27. if ((pad = gst_bin_find_unlinked_pad (bin, GST_PAD_SRC)) != NULL) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement