Exemplo n.º 1
0
static void
_metadata_changed_cb (OlPlayer *player,
                      OlOsdModule *module)
{
  ol_log_func ();
  _update_metadata (module);
  
}
Exemplo n.º 2
0
static OlOsdModule*
ol_osd_module_new (struct OlDisplayModule *module,
                   OlPlayer *player)
{
  ol_log_func ();
  OlOsdModule *data = g_new (OlOsdModule, 1);
  g_object_ref (player);
  data->player = player;
  data->window = NULL;
  data->lrc = NULL;
  data->lrc_id = -1;
  data->lrc_next_id = -1;
  data->current_line = 0;
  data->message_source = 0;
  data->metadata = ol_metadata_new ();
  data->config_bindings = NULL;
  ol_osd_module_init_osd (data);
  g_signal_connect (player,
                    "track-changed",
                    G_CALLBACK (_metadata_changed_cb),
                    data);
  _update_metadata (data);
  return data;
}
Exemplo n.º 3
0
OlScrollModule*
ol_scroll_module_new (struct OlDisplayModule *module,
                      OlPlayer *player)
{
  OlScrollModule *priv = g_new (OlScrollModule, 1);
  g_object_ref (player);
  priv->player = player;
  priv->scroll = NULL;
  priv->lrc = NULL;
  priv->metadata = ol_metadata_new ();
  priv->config_bindings = NULL;
  ol_scroll_module_init_scroll (priv);
  g_signal_connect (player,
                    "track-changed",
                    G_CALLBACK (_metadata_changed_cb),
                    priv);
  _update_metadata (priv);
  g_signal_connect (player,
                    "caps-changed",
                    G_CALLBACK (_caps_changed_cb),
                    priv);
  _update_caps (priv);
  return priv;
}
Exemplo n.º 4
0
static void
_metadata_changed_cb (OlPlayer *player,
                                  OlScrollModule *module)
{
  _update_metadata (module);
}