~ubuntu-branches/ubuntu/precise/gst-plugins-base0.10/precise-updates

« back to all changes in this revision

Viewing changes to gst/playback/gstplaybin.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2011-12-12 12:40:13 UTC
  • mfrom: (36.1.15 experimental)
  • Revision ID: package-import@ubuntu.com-20111212124013-onyadfb150d8c5dk
Tags: 0.10.35.2-2
* debian/libgstreamer-plugins-base.install:
  + Add license translations file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
 * GNOME-based applications, for example, will usually want to create
117
117
 * gconfaudiosink and gconfvideosink elements and make playbin use those,
118
118
 * so that output happens to whatever the user has configured in the GNOME
119
 
 * Multimedia System Selector confinguration dialog.
 
119
 * Multimedia System Selector configuration dialog.
120
120
 *
121
121
 * The sink elements do not necessarily need to be ready-made sinks. It is
122
122
 * possible to create container elements that look like a sink to playbin,
859
859
  element = gst_bin_new ("vbin");
860
860
  gst_bin_add (GST_BIN_CAST (element), sink);
861
861
 
862
 
  conv = gst_element_factory_make ("ffmpegcolorspace", "vconv");
 
862
  conv = gst_element_factory_make (COLORSPACE, "vconv");
863
863
  if (conv == NULL)
864
864
    goto no_colorspace;
865
865
  gst_bin_add (GST_BIN_CAST (element), conv);
905
905
  }
906
906
no_colorspace:
907
907
  {
908
 
    post_missing_element_message (play_bin, "ffmpegcolorspace");
 
908
    post_missing_element_message (play_bin, COLORSPACE);
909
909
    GST_ELEMENT_ERROR (play_bin, CORE, MISSING_PLUGIN,
910
910
        (_("Missing element '%s' - check your GStreamer installation."),
911
 
            "ffmpegcolorspace"), (NULL));
 
911
            COLORSPACE), (NULL));
912
912
    gst_object_unref (element);
913
913
    return NULL;
914
914
  }
972
972
  play_bin->textoverlay_element = GST_ELEMENT_CAST (gst_object_ref (overlay));
973
973
 
974
974
  /* we know this will succeed, as the video bin already created one before */
975
 
  csp = gst_element_factory_make ("ffmpegcolorspace", "subtitlecsp");
 
975
  csp = gst_element_factory_make (COLORSPACE, "subtitlecsp");
976
976
 
977
977
  /* Add our elements */
978
978
  gst_bin_add_many (GST_BIN_CAST (element), csp, overlay, vbin, NULL);
1046
1046
  play_bin->spu_element = GST_ELEMENT_CAST (gst_object_ref (overlay));
1047
1047
 
1048
1048
  /* we know this will succeed, as the video bin already created one before */
1049
 
  csp = gst_element_factory_make ("ffmpegcolorspace", "spucsp");
 
1049
  csp = gst_element_factory_make (COLORSPACE, "spucsp");
1050
1050
 
1051
1051
  /* Add our elements */
1052
1052
  gst_bin_add_many (GST_BIN_CAST (element), csp, overlay, vbin, NULL);
1207
1207
}
1208
1208
 
1209
1209
/* make the element (bin) that contains the elements needed to perform
1210
 
 * visualisation ouput.  The idea is to split the audio using tee, then
 
1210
 * visualisation output.  The idea is to split the audio using tee, then
1211
1211
 * sending the output to the regular audio bin and the other output to
1212
1212
 * the vis plugin that transforms it into a video that is rendered with the
1213
1213
 * normal video bin. The video and audio bins are run in threads to make sure
1519
1519
    goto subtitle_failed;
1520
1520
 
1521
1521
done:
1522
 
  /* we got the sink succesfully linked, now keep the sink
 
1522
  /* we got the sink successfully linked, now keep the sink
1523
1523
   * in our internal list */
1524
1524
  play_bin->sinks = g_list_prepend (play_bin->sinks, sink);
1525
1525
 
1791
1791
    gst_event_ref (event);
1792
1792
    if ((res = gst_element_send_event (sink, event))) {
1793
1793
      GST_DEBUG_OBJECT (play_bin,
1794
 
          "Sent event succesfully to sink %" GST_PTR_FORMAT, sink);
 
1794
          "Sent event successfully to sink %" GST_PTR_FORMAT, sink);
1795
1795
      break;
1796
1796
    }
1797
1797
    GST_DEBUG_OBJECT (play_bin,