housekeeping

James jam at tigger.ws
Thu Aug 5 23:37:10 UTC 2021


A typical tutorial ends

/* Release the request pads from the Tee, and unref them */
  gst_element_release_request_pad (tee, tee_audio_pad);
  gst_element_release_request_pad (tee, tee_video_pad);
  gst_object_unref (tee_audio_pad);
  gst_object_unref (tee_video_pad);

  /* Free resources */
  if (msg != NULL)
    gst_message_unref (msg);
  gst_object_unref (bus);
  gst_element_set_state (pipeline, GST_STATE_NULL);

  gst_object_unref (pipeline);
  return 0;
}

But in unix a process's resources are released when the program terminates.
What is happening here ?
a) we aren't looking for gstreamer bugs
b) we are not talking about 'part of a larger program'

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210806/1e916152/attachment-0001.htm>


More information about the gstreamer-devel mailing list