Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: Id3d760189f8bb32cf28f326eb07cd045016efcd0
if (vCodec != GST_WFD_VIDEO_UNKNOWN) {
msg->video_formats->list = g_new0(GstWFDVideoCodec, 1);
+
+ temp >>= 1;
while (temp) {
nativeindex++;
temp >>= 1;
}
- msg->video_formats->list->native = nativeindex - 1;
+ msg->video_formats->list->native = nativeindex;
msg->video_formats->list->native <<= 3;
if (vNative == GST_WFD_VIDEO_VESA_RESOLUTION)
/* hack for itv hd (sid 10510, video pid 3401 */
if (program->program_number == 10510 && bstream->pid == 3401) {
template = gst_static_pad_template_get (&video_template);
+ if (name)
+ g_free (name);
+ if (caps)
+ gst_caps_unref (caps);
name = g_strdup_printf ("video_%04x", bstream->pid);
caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "byte-stream",