summaryrefslogtreecommitdiffstats
path: root/common/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/do-not-change-eos-event-to-gap-event-if.patch
blob: aa55de10e4dbe855bb6d2d96b90e742762c931da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From b608d027fff6efc2d1988ebf169cbe3b2b44a61b Mon Sep 17 00:00:00 2001
From: zhouming <b42586@freescale.com>
Date: Thu, 8 May 2014 12:01:17 +0800
Subject: [PATCH] ENGR00312034: do not change eos event to gap event if no
 data has passed to streamsynchronizer.

https://bugzilla.gnome.org/show_bug.cgi?id=727074

Upstream-Status: Pending

Signed-off-by: zhouming <b42586@freescale.com>
---
 gst/playback/gststreamsynchronizer.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c
index 3997d1b..3e17c55 100644
--- a/gst/playback/gststreamsynchronizer.c
+++ b/gst/playback/gststreamsynchronizer.c
@@ -488,12 +488,11 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent,
         }
         g_slist_free (pads);
       } else {
-        /* if EOS, but no data has passed, then send something to replace EOS
-         * for preroll purposes */
+        /* if EOS, but no data has passed, then send EOS event */
         if (!seen_data) {
           GstEvent *gap_event;
 
-          gap_event = gst_event_new_gap (timestamp, GST_CLOCK_TIME_NONE);
+          gap_event = gst_event_new_eos ();
           ret = gst_pad_push_event (srcpad, gap_event);
         } else {
           GstEvent *gap_event;
-- 
1.7.9.5
ariable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
<html>
<head>
<!--
 * Copyright (C) 2017 "IoT.bzh"
 * Author: José Bollo <jose.bollo@iot.bzh>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
    <title>Monitoring</title>
    <link href="monitor-base.css" rel="stylesheet">
    <link href="monitor-demo.css" rel="stylesheet">
    <script type="text/javascript" src="underscore-min.js"></script>
    <script type="text/javascript" src="AFB.js"></script>
    <script type="text/javascript" src="monitor.js"></script>

<body id="root" class="on" onload="init();">
  <div id="head" class="clearfix">
    <div id="logo"></div>
    <div id="connected">Not Connected</div>
    <div id="title">Monitoring</div>
  </div>
  <div id="work">
    <div id="params" class="clearfix">
      <div id="connect" class="x-button">connect</div>
      <div>host: <input type="text" id="param-host" size="50" value="localhost"></input></div>
      <div>port: <input type="text" id="param-port" size="10" value="1234"></input></div>
      <div>token: <input type="text" id="param-token" size="33" value="hello"></input></div>
    </div>
    <div id="main">
      <div class="fillfix"></div>
      <div id="controls">
        <div id="all" class="api opened" data-api="*">
          <div class="opclo"></div>
          <div class="name">{ALL}</div>
          <div class="desc">Settings for all</div>
          <hr>
          <div class="verbosity">placeholder</div>
          <hr class="closedoff">
          <div class="closedon">traces...</div>
          <div class="trace closedoff"></div>
        </div>
        <div id="common" class="api" data-api="">
          <div class="name">{COMMON}</div>
          <div class="desc">Settings without apis</div>
          <hr>
          <div class="verbosity">placeholder</div>
        </div>
        <div id="apis">
        </div>
      </div>
      <div id="logmsg-box">
        <div id="disconnect" class="x-button">Disconnect</div>
        <div id="autoscroll" class="x-button">Stop scroll</div>
        <div id="addsep" class="x-button">Add separator</div>
        <div id="droptracevts" class="x-button">Clear traces</div>
        <div id="expert-pane" class="closed">
          <div class="opclo"></div>
          <div class="expert">{EXPERT}</div>
          <div class="closedoff">
            <div id="stopmsgs" class="x-button">Stop logs</div>
            <div id="dropmsgs" class="x-button">Clear logs</div>
            <div id="logmsgs-inner-box">
              <div class="fillfix"></div>
              <div id="logmsgs"></div>
            </div>
          </div>
        </div>
      </div>
      <div id="trace-events">
      </div>
    </div>
  </div>

<!-- template for APIS -->
  <template id="t-api">
    <div class="api closed" data-api="">
      <div class="opclo"></div>
      <div class="name"></div>
      <div class="desc"></div>
      <div class="closedoff">
        <hr>
        <div class="verbosity">placeholder</div>
        <hr>
        <div class="closed">
          <div class="opclo"></div>
          <div class="closedon">verbs...</div>
          <div class="verbs closedoff"></div>
        </div>
        <div class="closed">
          <div class="opclo"></div>
          <div class="closedon">traces...</div>
          <div class="trace closedoff"></div>
        </div>
      </div>
    </div>
  </template>

<!-- template for VERBS of APIS -->
  <template id="t-verb">
    <div class="verb" data-verb="">
      <div class="vdsc">
        <span class="name"></span>
        <span class="colon">:</span>
        <span class="desc"></span>
      </div>
      <div class="perm"></div>
    </div>
  </template>

<!-- template for ERRORS -->
  <template id="t-logmsg">
    <div class="logmsg">
      <div class="close"></div>
      <div class="tag"></div>
      <div class="content"></div>
    </div>
  </template>

<!-- template for VERBOSITY -->
  <template id="t-verbosity">
    <div class="verbosity">
      <span>Verbosity:</span>
      <select class="select">
        <option value="error">error</option>
        <option value="notice">notice</option>
        <option value="info">info</option>
        <option value="debug">debug</option>
      </select>
    </div>
  </template>

<!-- template for TRACE -->
  <template id="t-trace">
    <div class="trace closedoff">
      <div class="trace-box request" data-trace="request">
        <div class="trace-title">trace requests: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbreq">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box service" data-trace="service">
        <div class="trace-title">trace service call: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbservice">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box daemon" data-trace="daemon">
        <div class="trace-title">trace daemon: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbdaemon">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
      <div class="trace-box event" data-trace="event">
        <div class="trace-title">trace events: <a target="_blank" href="http://docs.automotivelinux.org/docs/apis_services/en/dev/reference/af-binder/afb-binding-references.html#functions-of-class-afbevent">(doc)</a></div>
        <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
        <div class="trace-item"><input type="radio" value="common">common</input></div>
        <div class="trace-item"><input type="radio" value="extra">extra</input></div>
        <div class="trace-item"><input type="radio" value="all">all</input></div>
      </div>
    </div>
  </template>

<!-- template for EVENTS -->
  <template id="t-traceevent">
    <div class="traceevent closed">
      <div class="close"></div>
      <div class="time"></div>
      <div class="tag"></div>
      <div class="content"></div>
    </div>
  </template>

<!-- template for SEPARATOR -->
  <template id="t-separator">
    <div class="separator"></div>
  </template>