<html><head></head><body><div>El lun, 29-01-2018 a las 16:30 -0500, Frediano Ziglio escribió:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
The "max-bytes" property of the appsrc GStreamer element expects a
64-bit value. Calling:
g_object_set(source, "max-bytes", 0, NULL);
in a 32-bit architecture ends up with a wrong value, it must be cast to
a long long int:
g_object_set(source, "max-bytes", 0LL, NULL);
---
src/channel-display-gst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index f978602..c872a1f 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -333,7 +333,7 @@ static void app_source_setup(GstElement *pipeline
G_GNUC_UNUSED,
"caps", caps,
"is-live", TRUE,
"format", GST_FORMAT_TIME,
- "max-bytes", 0,
+ "max-bytes", 0LL,
"block", TRUE,
NULL);
gst_caps_unref(caps);
</blockquote>
I would use a gint64 cast instead.
Beside that patch is fine.
</blockquote>
Or even better G_GINT64_CONSTANT(0).
</pre></blockquote><div><br></div><div>Sure, didn't know about this macro. Do you want me to resend the modified patch?</div><div><br></div><div>Javier</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>
Frediano
</pre></blockquote><div><span><pre>-- <br></pre>
<br>
<br>
<table id="sig" width="480" cellspacing="0" cellpadding="0" border-spacing="0" style="width:480px;margin:0;padding:0;">
<tbody><tr>
<td text-align="right" style="border-right:1px solid #3e5d6b;padding-right:10px;" valign="top">
<p style="padding: 0px 9px 0px 0px; text-align: right;">
<a href="http://flexvdi.com" title="flexVDI">
<img src="http://www.flexvdi.com/signature/logo.flexvdi.png " moz-do-not-send="true" alt="flexVDI" border="0" height="45" width="151">
</a>
</p>
<p style="padding: 5px 10px 0px 0px; font-family: Lato, Arial; font-size: 15px; font-weight: bold; color: rgb(62, 93, 107); line-height: 17px; height: 17px; text-align: right;">
<span style="float:right">Javier Celaya</span>
</p>
<p style="padding: 0px 10px 0px 0px; font-family: Lato, Arial; font-size: 13px; font-style: italic; color: rgb(0, 161, 193); line-height: 17px; height: 17px; text-align: right;">
Chief Technology Officer</p>
</td>
<td style="padding-left:18px;display:block;">
<p style="padding: 5px 0px 0px;">
<img src="http://flexvdi.com/signature/mail.png" moz-do-not-send="true" style="margin:1px 7px 0 0;" alt="email" align="left" height="17" width="17">
<a href="mailto:correo-electronico@flexvdi.com" style="font-family:Lato,Arial;font-size:14px;color:#727272;line-height:17px;height:17px;">javier.celaya@flexvdi.com</a>
</p>
<p style="padding: 5px 0px 0px;">
<img src="http://flexvdi.com/signature/phone.png" moz-do-not-send="true" style="margin:0 7px 0 0;" alt="Phone" align="left" height="17" width="17">
<span style="font-family:Lato,Arial;font-size:14px;color:#727272;line-height:17px;height:17px;">+34 696 969 959</span>
</p>
<p style="padding: 5px 0px 0px;">
<img src="http://flexvdi.com/signature/skype.png" moz-do-not-send="true" style="margin:0 7px 0 0;" alt="Skype" align="left" height="17" width="17">
<span style="font-family:Lato,Arial;font-size:14px;color:#727272;line-height:17px;height:17px;">@j_celaya</span>
</p>
<p style="padding: 5px 0px 0px;">
<img src="http://flexvdi.com/signature/legal.png" moz-do-not-send="true" style="margin:0 7px 0 0;" alt="Legal" align="left" height="17" width="17">
<a href="http://flexvdi.com/es/legal" style="font-family:Lato,Arial;font-size:14px;font-style:italic;color:#727272;line-height:17px;height:17px;">Legal Information and Privacy Policy</a>
</p>
</td>
</tr>
</tbody></table></span></div></body></html>