From: Reynaldo H. Verdejo Pinochet Date: Mon, 20 Mar 2017 20:43:06 +0000 (-0700) Subject: design: encoding: drop escaping leftover X-Git-Tag: 1.19.3~489^2~334 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2328263419e1bbb6fa11e871a402fc067a01862b;p=platform%2Fupstream%2Fgstreamer.git design: encoding: drop escaping leftover Additionally: - Make code block format explicit - Drop needless padding --- diff --git a/markdown/design/encoding.md b/markdown/design/encoding.md index b0fa120..10b6e56 100644 --- a/markdown/design/encoding.md +++ b/markdown/design/encoding.md @@ -61,14 +61,14 @@ Whenever a request pad is created, encodebin will: This allows reducing the code to the minimum for applications wishing to encode a source for a given profile: -``` - encbin = gst_element_factory_make ("encodebin, NULL); - g_object_set (encbin, "profile", "N900/H264 HQ", NULL); - gst_element_link (encbin, filesink); - - vsrcpad = gst_element_get_src_pad (source, "src1"); - vsinkpad = gst_element_get_request\_pad (encbin, "video\_%u"); - gst_pad_link (vsrcpad, vsinkpad); +```c +encbin = gst_element_factory_make ("encodebin, NULL); +g_object_set (encbin, "profile", "N900/H264 HQ", NULL); +gst_element_link (encbin, filesink); + +vsrcpad = gst_element_get_src_pad (source, "src1"); +vsinkpad = gst_element_get_request_pad (encbin, "video\_%u"); +gst_pad_link (vsrcpad, vsinkpad); ``` ### Explanation of the Various stages in EncodeBin