* The device to use for CDs/DVDs needs to be set on the source element
* playbin creates before it is opened. The most generic way of doing this
* is to connect to playbin's "source-setup" (or "notify::source") signal,
- * which will be emitted by playbin2 when it has created the source element
+ * which will be emitted by playbin when it has created the source element
* for a particular URI. In the signal callback you can check if the source
* element has a "device" property and set it appropriately. In some cases
* the device can also be set as part of the URI, but it depends on the
* <refsect2>
* <title>Examples</title>
* |[
- * gst-launch -v playbin2 uri=file:///path/to/somefile.avi
+ * gst-launch -v playbin uri=file:///path/to/somefile.avi
* ]| This will play back the given AVI video file, given that the video and
* audio decoders required to decode the content are installed. Since no
* special audio sink or video sink is supplied (not possible via gst-launch),
* playbin will try to find a suitable audio and video sink automatically
* using the autoaudiosink and autovideosink elements.
* |[
- * gst-launch -v playbin2 uri=cdda://4
+ * gst-launch -v playbin uri=cdda://4
* ]| This will play back track 4 on an audio CD in your disc drive (assuming
* the drive is detected automatically by the plugin).
* |[
- * gst-launch -v playbin2 uri=dvd://
+ * gst-launch -v playbin uri=dvd://
* ]| This will play back the DVD in your disc drive (assuming
* the drive is detected automatically by the plugin).
* </refsect2>
}
static gboolean
-gst_playbin2_send_custom_event (GstObject * selector, const gchar * event_name)
+gst_play_bin_send_custom_event (GstObject * selector, const gchar * event_name)
{
GstPad *src;
GstPad *peer;
g_object_get (selector, "active-pad", &old_sinkpad, NULL);
if (old_sinkpad != sinkpad) {
- if (gst_playbin2_send_custom_event (selector,
+ if (gst_play_bin_send_custom_event (selector,
"playsink-custom-video-flush"))
playbin->video_pending_flush_finish = TRUE;
g_object_get (selector, "active-pad", &old_sinkpad, NULL);
if (old_sinkpad != sinkpad) {
- if (gst_playbin2_send_custom_event (selector,
+ if (gst_play_bin_send_custom_event (selector,
"playsink-custom-audio-flush"))
playbin->audio_pending_flush_finish = TRUE;
gst_play_bin_suburidecodebin_block (group, group->suburidecodebin,
TRUE);
- if (gst_playbin2_send_custom_event (selector,
+ if (gst_play_bin_send_custom_event (selector,
"playsink-custom-subtitle-flush"))
playbin->text_pending_flush_finish = TRUE;
if (playbin->video_pending_flush_finish) {
playbin->video_pending_flush_finish = FALSE;
GST_PLAY_BIN_UNLOCK (playbin);
- gst_playbin2_send_custom_event (GST_OBJECT (selector),
+ gst_play_bin_send_custom_event (GST_OBJECT (selector),
"playsink-custom-video-flush-finish");
goto notify;
}
if (playbin->audio_pending_flush_finish) {
playbin->audio_pending_flush_finish = FALSE;
GST_PLAY_BIN_UNLOCK (playbin);
- gst_playbin2_send_custom_event (GST_OBJECT (selector),
+ gst_play_bin_send_custom_event (GST_OBJECT (selector),
"playsink-custom-audio-flush-finish");
goto notify;
}
if (playbin->text_pending_flush_finish) {
playbin->text_pending_flush_finish = FALSE;
GST_PLAY_BIN_UNLOCK (playbin);
- gst_playbin2_send_custom_event (GST_OBJECT (selector),
+ gst_play_bin_send_custom_event (GST_OBJECT (selector),
"playsink-custom-subtitle-flush-finish");
goto notify;
}
sinkpad = NULL;
/* store the selector for the pad */
- g_object_set_data (G_OBJECT (pad), "playbin2.select", select);
+ g_object_set_data (G_OBJECT (pad), "playbin.select", select);
}
GST_SOURCE_GROUP_UNLOCK (group);
GST_SOURCE_GROUP_LOCK (group);
- if ((select = g_object_get_data (G_OBJECT (pad), "playbin2.select"))) {
+ if ((select = g_object_get_data (G_OBJECT (pad), "playbin.select"))) {
g_assert (select->selector == NULL);
g_assert (select->srcpad == pad);
gst_object_unref (pad);